![]() |
AzeorthCore 3.3.5a
OpenSource WoW Emulator
|
#include <Unit.h>
Public Types | |
| typedef std::unordered_set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlSet |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::list< AuraEffect * > | AuraEffectList |
| typedef std::list< Aura * > | AuraList |
| typedef std::list< AuraApplication * > | AuraApplicationList |
| typedef std::list< DiminishingReturn > | Diminishing |
| typedef GuidUnorderedSet | ComboPointHolderSet |
| typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
| typedef std::set< PetAura const * > | PetAuraSet |
Public Member Functions | |
| ~Unit () override | |
| UnitAI * | GetAI () |
| void | SetAI (UnitAI *newAI) |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| uint32 | GetDynamicFlags () const override |
| void | ReplaceAllDynamicFlags (uint32 flag) override |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) |
| void | IncrDiminishing (DiminishingGroup group) |
| float | ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration) |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| void | ClearDiminishings () |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| void | Update (uint32 time) override |
| void | setAttackTimer (WeaponAttackType type, int32 time) |
| void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
| int32 | getAttackTimer (WeaponAttackType type) const |
| bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
| bool | haveOffhandWeapon () const |
| bool | CanDualWield () const |
| virtual void | SetCanDualWield (bool value) |
| float | GetCombatReach () const override |
| float | GetMeleeReach () const |
| bool | IsWithinRange (Unit const *obj, float dist) const |
| bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (Unit const *obj, float dist=0.f) const |
| float | GetMeleeRange (Unit const *target) const |
| virtual SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK, uint8 damageIndex=0) const =0 |
| bool | GetRandomContactPoint (Unit const *target, float &x, float &y, float &z, bool force=false) const |
| void | _addAttacker (Unit *pAttacker) |
| void | _removeAttacker (Unit *pAttacker) |
| Unit * | getAttackerForHelper () const |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | CastStop (uint32 except_spellid=0, bool withInstant=true) |
| bool | AttackStop () |
| void | RemoveAllAttackers () |
| AttackerSet const & | getAttackers () const |
| bool | GetMeleeAttackPoint (Unit *attacker, Position &pos) |
| bool | isAttackingPlayer () const |
| Unit * | GetVictim () const |
| void | CombatStop (bool includingCast=false) |
| void | CombatStopWithPets (bool includingCast=false) |
| void | StopAttackFaction (uint32 faction_id) |
| void | StopAttackingInvalidTarget () |
| Unit * | SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
| Unit * | SelectNearbyNoTotemTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendMeleeAttackStop (Unit *victim=nullptr) |
| void | SendMeleeAttackStart (Unit *victim, Player *sendTo=nullptr) |
| void | AddUnitState (uint32 f) |
| bool | HasUnitState (const uint32 f) const |
| void | ClearUnitState (uint32 f) |
| uint32 | GetUnitState () const |
| bool | CanFreeMove () const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| void | AddUnitTypeMask (uint32 mask) |
| uint32 | GetUnitTypeMask () const |
| bool | IsSummon () const |
| bool | IsGuardian () const |
| bool | IsControllableGuardian () const |
| bool | IsPet () const |
| bool | IsHunterPet () const |
| bool | IsTotem () const |
| bool | IsVehicle () const |
| uint8 | getLevel () const |
| uint8 | getLevelForTarget (WorldObject const *) const override |
| void | SetLevel (uint8 lvl, bool showLevelChange=true) |
| uint8 | getRace (bool original=false) const |
| void | setRace (uint8 race) |
| uint32 | getRaceMask () const |
| uint8 | getClass () const |
| uint32 | getClassMask () const |
| uint8 | getGender () const |
| float | GetStat (Stats stat) const |
| void | SetStat (Stats stat, int32 val) |
| uint32 | GetArmor () const |
| void | SetArmor (int32 val) |
| uint32 | GetResistance (SpellSchools school) const |
| uint32 | GetResistance (SpellSchoolMask mask) const |
| void | SetResistance (SpellSchools school, int32 val) |
| uint32 | GetHealth () const |
| uint32 | GetMaxHealth () const |
| bool | IsFullHealth () const |
| bool | HealthBelowPct (int32 pct) const |
| bool | HealthBelowPctDamaged (int32 pct, uint32 damage) const |
| bool | HealthAbovePct (int32 pct) const |
| bool | HealthAbovePctHealed (int32 pct, uint32 heal) const |
| float | GetHealthPct () const |
| uint32 | CountPctFromMaxHealth (int32 pct) const |
| uint32 | CountPctFromCurHealth (int32 pct) const |
| float | GetPowerPct (Powers power) const |
| void | SetHealth (uint32 val) |
| void | SetMaxHealth (uint32 val) |
| void | SetFullHealth () |
| int32 | ModifyHealth (int32 val) |
| int32 | GetHealthGain (int32 dVal) |
| Powers | getPowerType () const |
| void | setPowerType (Powers power) |
| uint32 | GetPower (Powers power) const |
| uint32 | GetMaxPower (Powers power) const |
| void | SetPower (Powers power, uint32 val, bool withPowerUpdate=true) |
| void | SetMaxPower (Powers power, uint32 val) |
| int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
| int32 | ModifyPowerPct (Powers power, float pct, bool apply=true) |
| uint32 | GetAttackTime (WeaponAttackType att) const |
| void | SetAttackTime (WeaponAttackType att, uint32 val) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| UnitFlags | GetUnitFlags () const |
| bool | HasUnitFlag (UnitFlags flags) const |
| void | SetUnitFlag (UnitFlags flags) |
| void | RemoveUnitFlag (UnitFlags flags) |
| void | ReplaceAllUnitFlags (UnitFlags flags) |
| UnitFlags2 | GetUnitFlags2 () const |
| bool | HasUnitFlag2 (UnitFlags2 flags) const |
| void | SetUnitFlag2 (UnitFlags2 flags) |
| void | RemoveUnitFlag2 (UnitFlags2 flags) |
| void | ReplaceAllUnitFlags2 (UnitFlags2 flags) |
| SheathState | GetSheath () const |
| virtual void | SetSheath (SheathState sheathed) |
| uint32 | GetFaction () const |
| void | SetFaction (uint32 faction) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (Unit const *target, bool checkOriginalFaction=false) const |
| ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target) const |
| bool | IsHostileTo (Unit const *unit) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (Unit const *unit) const |
| bool | IsNeutralToAll () const |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| bool | IsContestedGuard () const |
| bool | IsInSanctuary () const |
| bool | IsPvP () const |
| bool | IsFFAPvP () const |
| void | SetPvP (bool state) |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| uint8 | getStandState () const |
| bool | IsSitState () const |
| bool | IsStandState () const |
| void | SetStandState (uint8 state) |
| void | SetStandFlags (uint8 flags) |
| void | RemoveStandFlags (uint8 flags) |
| bool | IsMounted () const |
| uint32 | GetMountID () const |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | Dismount () |
| uint16 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
| void | ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpellInfo, uint32 damage, SpellInfo const *procAura=nullptr, int8 procAuraEffectIndex=-1, Spell const *procSpell=nullptr, DamageInfo *damageInfo=nullptr, HealInfo *healInfo=nullptr, uint32 procPhase=2) |
| void | GetProcAurasTriggeredOnEvent (std::list< AuraApplication * > &aurasTriggeringProc, std::list< AuraApplication * > *procAuras, ProcEventInfo eventInfo) |
| void | TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo) |
| void | TriggerAurasProcOnEvent (std::list< AuraApplication * > *myProcAuras, std::list< AuraApplication * > *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, std::list< AuraApplication * > &procAuras) |
| void | HandleEmoteCommand (uint32 emoteId) |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false, bool ignoreCasting=false) |
| void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK, const bool sittingVictim=false) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | HandleProcExtraAttackFor (Unit *victim, uint32 count) |
| void | SetLastExtraAttackSpell (uint32 spellId) |
| uint32 | GetLastExtraAttackSpell () const |
| void | AddExtraAttacks (uint32 count) |
| void | SetLastDamagedTargetGuid (ObjectGuid const &guid) |
| ObjectGuid const & | GetLastDamagedTargetGuid () const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false) |
| void | DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss, Spell const *spell=nullptr) |
| float | GetMeleeCritChanceReduction () const |
| float | GetRangedCritChanceReduction () const |
| float | GetSpellCritChanceReduction () const |
| uint32 | GetMeleeCritDamageReduction (uint32 damage) const |
| uint32 | GetRangedCritDamageReduction (uint32 damage) const |
| uint32 | GetSpellCritDamageReduction (uint32 damage) const |
| uint32 | GetMeleeDamageReduction (uint32 damage) const |
| uint32 | GetRangedDamageReduction (uint32 damage) const |
| uint32 | GetSpellDamageReduction (uint32 damage) const |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spell) |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spell) |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spell, bool canReflect=false) |
| SpellMissInfo | SpellHitResult (Unit *victim, Spell const *spell, bool canReflect=false) |
| float | GetUnitDodgeChance () const |
| float | GetUnitParryChance () const |
| float | GetUnitBlockChance () const |
| float | GetUnitMissChance (WeaponAttackType attType) const |
| float | GetUnitCriticalChance (WeaponAttackType attackType, Unit const *victim) const |
| int32 | GetMechanicResistChance (SpellInfo const *spell) |
| bool | CanUseAttackType (uint8 attacktype) const |
| virtual uint32 | GetShieldBlockValue () const =0 |
| uint32 | GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const |
| uint32 | GetUnitMeleeSkill (Unit const *target=nullptr) const |
| uint32 | GetDefenseSkillValue (Unit const *target=nullptr) const |
| uint32 | GetWeaponSkillValue (WeaponAttackType attType, Unit const *target=nullptr) const |
| float | GetWeaponProcChance () const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) const |
| NPCFlags | GetNpcFlags () const |
| bool | HasNpcFlag (NPCFlags flags) const |
| void | SetNpcFlag (NPCFlags flags) |
| void | RemoveNpcFlag (NPCFlags flags) |
| void | ReplaceAllNpcFlags (NPCFlags flags) |
| bool | IsVendor () const |
| bool | IsTrainer () const |
| bool | IsQuestGiver () const |
| bool | IsGossip () const |
| bool | IsTaxi () const |
| bool | IsGuildMaster () const |
| bool | IsBattleMaster () const |
| bool | IsBanker () const |
| bool | IsInnkeeper () const |
| bool | IsSpiritHealer () const |
| bool | IsSpiritGuide () const |
| bool | IsTabardDesigner () const |
| bool | IsAuctioner () const |
| bool | IsArmorer () const |
| bool | IsServiceProvider () const |
| bool | IsSpiritService () const |
| bool | IsCritter () const |
| bool | IsInFlight () const |
| void | SetImmuneToAll (bool apply, bool keepCombat=false) |
| bool | IsImmuneToAll () const |
| void | SetImmuneToPC (bool apply, bool keepCombat=false) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat=false) |
| bool | IsImmuneToNPC () const |
| bool | IsEngaged () const |
| bool | IsEngagedBy (Unit const *who) const |
| bool | IsInCombat () const |
| bool | IsInCombatWith (Unit const *who) const |
| bool | IsPetInCombat () const |
| void | CombatStart (Unit *target, bool initialAggro=true) |
| void | CombatStartOnCast (Unit *target, bool initialAggro=true, uint32 duration=0) |
| void | SetInCombatState (bool PvP, Unit *enemy=nullptr, uint32 duration=0) |
| void | SetInCombatWith (Unit *enemy, uint32 duration=0) |
| void | ClearInCombat () |
| void | ClearInPetCombat () |
| uint32 | GetCombatTimer () const |
| void | SetCombatTimer (uint32 timer) |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const |
| virtual bool | HasSpell (uint32) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const |
| bool | HasStealthAura () const |
| bool | HasInvisibilityAura () const |
| bool | isFeared () const |
| bool | isInRoots () const |
| bool | IsPolymorphed () const |
| bool | isFrozen () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true, Unit const *byWho=nullptr) const |
| bool | IsValidAttackTarget (Unit const *target) const |
| bool | _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=nullptr) const |
| bool | IsValidAssistTarget (Unit const *target) const |
| bool | _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const |
| virtual bool | IsInWater () const |
| virtual bool | IsUnderWater () const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| void | SendHealSpellLog (Unit *victim, uint32 SpellID, uint32 Damage, uint32 OverHeal, uint32 Absorb, bool critical=false) |
| int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 SpellID, uint32 Damage, Powers powertype) |
| void | EnergizeBySpell (Unit *victim, uint32 SpellID, uint32 Damage, Powers powertype) |
| SpellCastResult | CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=nullptr, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| SpellCastResult | CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=nullptr, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SendPlaySpellVisual (uint32 id) |
| void | SendPlaySpellImpact (ObjectGuid guid, uint32 id) |
| void | BuildCooldownPacket (WorldPacket &data, uint8 flags, uint32 spellId, uint32 cooldown) |
| void | BuildCooldownPacket (WorldPacket &data, uint8 flags, PacketCooldowns const &cooldowns) |
| void | DeMorph () |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage *log) |
| void | SendSpellNonMeleeReflectLog (SpellNonMeleeDamage *log, Unit *attacker) |
| void | SendSpellNonMeleeDamageLog (Unit *target, SpellInfo const *spellInfo, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false, bool Split=false) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
| void | NearTeleportTo (Position &pos, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false) |
| void | SendTameFailure (uint8 result) |
| void | SendTeleportPacket (Position &pos) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| bool | UpdatePosition (const Position &pos, bool teleport=false) |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. More... | |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. More... | |
| void | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
| void | JumpTo (float speedXY, float speedZ, bool forward=true) |
| void | JumpTo (WorldObject *obj, float speedZ) |
| void | SendMonsterMove (float NewPosX, float NewPosY, float NewPosZ, uint32 TransitTime, SplineFlags sf=SPLINEFLAG_WALK_MODE) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed) |
| void | SendMovementFlagUpdate (bool self=false) |
| virtual bool | SetWalk (bool enable) |
| virtual bool | SetDisableGravity (bool disable, bool packetOnly=false, bool updateAnimationTier=true) |
| virtual bool | SetSwim (bool enable) |
| virtual bool | SetCanFly (bool enable, bool packetOnly=false) |
| virtual bool | SetWaterWalking (bool enable, bool packetOnly=false) |
| virtual bool | SetFeatherFall (bool enable, bool packetOnly=false) |
| virtual bool | SetHover (bool enable, bool packetOnly=false, bool updateAnimationTier=true) |
| void | SendMovementWaterWalking (Player *sendTo) |
| void | SendMovementFeatherFall (Player *sendTo) |
| void | SendMovementHover (Player *sendTo) |
| void | SetInFront (WorldObject const *target) |
| void | SetFacingTo (float ori) |
| void | SetFacingToObject (WorldObject *object) |
| void | SendChangeCurrentVictimOpcode (HostileReference *pHostileReference) |
| void | SendClearThreatListOpcode () |
| void | SendRemoveFromThreatListOpcode (HostileReference *pHostileReference) |
| void | SendThreatListUpdate () |
| void | SendClearTarget () |
| void | BuildHeartBeatMsg (WorldPacket *data) const |
| bool | IsAlive () const |
| bool | isDying () const |
| bool | isDead () const |
| DeathState | getDeathState () |
| virtual void | setDeathState (DeathState s, bool despawn=false) |
| ObjectGuid | GetOwnerGUID () const |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetCreatorGUID () const |
| void | SetCreatorGUID (ObjectGuid creator) |
| ObjectGuid | GetMinionGUID () const |
| void | SetMinionGUID (ObjectGuid guid) |
| ObjectGuid | GetCharmerGUID () const |
| void | SetCharmerGUID (ObjectGuid owner) |
| ObjectGuid | GetCharmGUID () const |
| void | SetPetGUID (ObjectGuid guid) |
| ObjectGuid | GetPetGUID () const |
| void | SetCritterGUID (ObjectGuid guid) |
| ObjectGuid | GetCritterGUID () const |
| bool | IsControlledByPlayer () const |
| bool | IsCreatedByPlayer () const |
| ObjectGuid | GetCharmerOrOwnerGUID () const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| Player * | GetSpellModOwner () const |
| Unit * | GetOwner () const |
| Guardian * | GetGuardianPet () const |
| Minion * | GetFirstMinion () const |
| Unit * | GetCharmer () const |
| Unit * | GetCharm () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| void | SetMinion (Minion *minion, bool apply) |
| void | GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry) |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | SetCharm (Unit *target, bool apply) |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr) |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RestoreFaction () |
| Unit * | GetFirstControlled () const |
| void | RemoveAllControlled (bool onDeath=false) |
| bool | IsCharmed () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| CharmInfo * | GetCharmInfo () |
| CharmInfo * | InitCharmInfo () |
| void | DeleteCharmInfo () |
| void | UpdateCharmAI () |
| SharedVisionList const & | GetSharedVisionList () |
| void | AddPlayerToVision (Player *player) |
| void | RemovePlayerFromVision (Player *player) |
| bool | HasSharedVision () const |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) |
| Aura * | _TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint8 effMask, Unit *caster, int32 *baseAmount=nullptr, Item *castItem=nullptr, ObjectGuid casterGUID=ObjectGuid::Empty, bool periodicReset=false) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint8 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| void | _ApplyAura (AuraApplication *aurApp, uint8 effMask) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _RemoveNoStackAuraApplicationsDueToAura (Aura *aura) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura) |
| bool | _IsNoStackAuraDueToAura (Aura *appliedAura, Aura *existingAura) const |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| Aura * | GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, Aura *except=nullptr) const |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check) |
| void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check) |
| void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check) |
| void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check) |
| void | RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, Unit *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, Unit *stealer) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid) |
| void | RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true) |
| void | RemoveNotOwnSingleTargetAuras () |
| void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0, bool isAutoshot=false) |
| void | RemoveAurasWithAttribute (uint32 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID) |
| void | RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0) |
| void | RemoveMovementImpairingAuras (bool withRoot) |
| void | RemoveAurasByShapeShift () |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveAllAuras () |
| void | RemoveArenaAuras () |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveEvadeAuras () |
| void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
| void | _RemoveAllAuraStatMods () |
| void | _ApplyAllAuraStatMods () |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffectDummy (uint32 spellid) const |
| AuraEffect * | GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| void | GetDispellableAuraList (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList) |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| bool | HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithCaster (AuraType auratype, ObjectGuid caster) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auratype, int32 miscvalue) const |
| bool | HasAuraTypeWithAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithValue (AuraType auratype, int32 value) const |
| bool | HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const |
| bool | HasNegativeAuraWithInterruptFlag (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) |
| bool | HasVisibleAuraType (AuraType auraType) const |
| bool | HasNegativeAuraWithAttribute (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) |
| bool | HasAuraWithMechanic (uint32 mechanicMask) const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, uint8 mode=0) |
| uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
| int32 | GetTotalAuraModifierAreaExclusive (AuraType auratype) const |
| int32 | GetTotalAuraModifier (AuraType auratype) const |
| float | GetTotalAuraMultiplier (AuraType auratype) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auratype) |
| int32 | GetMaxNegativeAuraModifier (AuraType auratype) const |
| int32 | GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *except=nullptr) const |
| int32 | GetMaxNegativeAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetTotalAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxPositiveAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxNegativeAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetTotalAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxPositiveAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxNegativeAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| float | GetResistanceBuffMods (SpellSchools school, bool positive) const |
| void | SetResistanceBuffMods (SpellSchools school, bool positive, float val) |
| void | ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply) |
| void | ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply) |
| void | InitStatBuffMods () |
| void | ApplyStatBuffMod (Stats stat, float val, bool apply) |
| void | ApplyStatPercentBuffMod (Stats stat, float val, bool apply) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreateHealth (uint32 val) |
| uint32 | GetCreateHealth () const |
| void | SetCreateMana (uint32 val) |
| uint32 | GetCreateMana () const |
| uint32 | GetCreatePowers (Powers power) const |
| float | GetPosStat (Stats stat) const |
| float | GetNegStat (Stats stat) const |
| float | GetCreateStat (Stats stat) const |
| void | SetCurrentCastedSpell (Spell *pSpell) |
| virtual void | ProhibitSpellSchool (SpellSchoolMask, uint32) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, bool bySelf=false) |
| void | FinishSpell (CurrentSpellTypes spellType, bool ok=true) |
| bool | IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false) |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | GetCurrentSpell (uint32 spellType) const |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| virtual bool | IsMovementPreventedByCasting () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| bool | IsInFeralForm () const |
| bool | IsInDisallowedMountForm () const |
| bool | HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply) |
| void | SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value) |
| float | GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const |
| float | GetTotalStatValue (Stats stat, float additionalValue=0.0f) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| Powers | GetPowerTypeByAuraGroup (UnitMods unitMod) const |
| bool | CanModifyStats () const |
| void | SetCanModifyStats (bool modifyStats) |
| virtual bool | UpdateStats (Stats stat)=0 |
| virtual bool | UpdateAllStats ()=0 |
| virtual void | UpdateResistances (uint32 school)=0 |
| virtual void | UpdateAllResistances () |
| virtual void | UpdateArmor ()=0 |
| virtual void | UpdateMaxHealth ()=0 |
| virtual void | UpdateMaxPower (Powers power)=0 |
| virtual void | UpdateAttackPowerAndDamage (bool ranged=false)=0 |
| virtual void | UpdateDamagePhysical (WeaponAttackType attType) |
| float | GetTotalAttackPowerValue (WeaponAttackType attType, Unit *pVictim=nullptr) const |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0) |
| virtual void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex=0)=0 |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | IsVisible () const |
| void | SetVisible (bool x) |
| void | SetModelVisible (bool on) |
| uint32 | GetPhaseByAuras () const |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | UpdateObjectVisibility (bool forced=true, bool fromUpdate=false) override |
| bool | CanHaveThreatList () const |
| void | AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=nullptr) |
| float | ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| void | TauntApply (Unit *victim) |
| void | TauntFadeOut (Unit *taunter) |
| ThreatMgr & | GetThreatMgr () |
| ThreatMgr const & | GetThreatMgr () const |
| void | addHatedBy (HostileReference *pHostileReference) |
| void | removeHatedBy (HostileReference *) |
| HostileRefMgr & | getHostileRefMgr () |
| VisibleAuraMap const * | GetVisibleAuras () |
| AuraApplication * | GetVisibleAura (uint8 slot) |
| void | SetVisibleAura (uint8 slot, AuraApplication *aur) |
| void | RemoveVisibleAura (uint8 slot) |
| uint32 | GetInterruptMask () const |
| void | AddInterruptMask (uint32 mask) |
| void | UpdateInterruptMask () |
| uint32 | GetDisplayId () const |
| virtual void | SetDisplayId (uint32 modelId) |
| uint32 | GetNativeDisplayId () const |
| void | RestoreDisplayId () |
| void | SetNativeDisplayId (uint32 modelId) |
| void | setTransForm (uint32 spellid) |
| uint32 | getTransForm () const |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| DynamicObject * | GetDynObject (uint32 spellId) |
| bool | RemoveDynObject (uint32 spellId) |
| void | RemoveAllDynObjects () |
| GameObject * | GetGameObject (uint32 spellId) const |
| void | AddGameObject (GameObject *gameObj) |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | RemoveAllGameObjects () |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| uint32 | BuildAuraStateUpdateForTarget (Unit *target) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const |
| void | UnsummonAllTotems (bool onDeath=false) |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) |
| int32 | SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask, bool isDoT=false) |
| float | SpellPctDamageModsDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) |
| uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint8 effIndex, float TotalMod=0.0f, uint32 stack=1) |
| uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) |
| int32 | SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) |
| float | SpellPctHealingModsDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) |
| uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint8 effIndex, float TotalMod=0.0f, uint32 stack=1) |
| uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) |
| uint32 | MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| uint32 | MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=BASE_ATTACK) |
| bool | isBlockCritical () |
| float | SpellDoneCritChance (Unit const *, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType, bool skipEffectCheck) const |
| float | SpellTakenCritChance (Unit const *caster, SpellInfo const *spellProto, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType, bool skipEffectCheck) const |
| void | SetLastManaUse (uint32 spellCastTime) |
| bool | IsUnderLastManaUseEffect () const |
| void | SetContestedPvP (Player *attackedPlayer=nullptr, bool lookForNearContestedGuards=true) |
| uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
| float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
| void | CastDelayedSpellWithPeriodicAmount (Unit *caster, uint32 spellId, AuraType auraType, int32 addAmount, uint8 effectIndex=0) |
| void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL) |
| void | ApplySpellDispelImmunity (SpellInfo const *spellProto, DispelType type, bool apply) |
| virtual bool | IsImmunedToSpell (SpellInfo const *spellInfo, Spell const *spell=nullptr) |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
| bool | IsImmunedToDamage (Spell const *spell) const |
| bool | IsImmunedToSchool (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToSchool (SpellInfo const *spellInfo) const |
| bool | IsImmunedToSchool (Spell const *spell) const |
| bool | IsImmunedToDamageOrSchool (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToDamageOrSchool (SpellInfo const *spellInfo) const |
| virtual bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const |
| void | UpdateSpeed (UnitMoveType mtype, bool forced) |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| void | SetSpeed (UnitMoveType mtype, float rate, bool forced=false) |
| void | SetSpeedRate (UnitMoveType mtype, float rate) |
| float | ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const |
| int32 | CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=nullptr) const |
| int32 | CalcSpellDuration (SpellInfo const *spellProto) |
| int32 | ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask) |
| void | ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=nullptr) |
| float | CalculateLevelPenalty (SpellInfo const *spellProto) const |
| void | addFollower (FollowerReference *pRef) |
| void | removeFollower (FollowerReference *) |
| MotionMaster * | GetMotionMaster () |
| const MotionMaster * | GetMotionMaster () const |
| virtual MovementGeneratorType | GetDefaultMovementType () const |
| -------—End of Pet responses methods-------— More... | |
| bool | IsStopped () const |
| void | StopMoving () |
| void | StopMovingOnCurrentPos () |
| virtual void | PauseMovement (uint32 timer=0, uint8 slot=0) |
| void | ResumeMovement (uint32 timer=0, uint8 slot=0) |
| void | AddUnitMovementFlag (uint32 f) |
| void | RemoveUnitMovementFlag (uint32 f) |
| bool | HasUnitMovementFlag (uint32 f) const |
| uint32 | GetUnitMovementFlags () const |
| void | SetUnitMovementFlags (uint32 f) |
| void | AddExtraUnitMovementFlag (uint16 f) |
| void | RemoveExtraUnitMovementFlag (uint16 f) |
| uint16 | HasExtraUnitMovementFlag (uint16 f) const |
| uint16 | GetExtraUnitMovementFlags () const |
| void | SetExtraUnitMovementFlags (uint16 f) |
| void | SetControlled (bool apply, UnitState state) |
| void | DisableRotate (bool apply) |
| void | DisableSpline () |
| uint8 | GetComboPoints (Unit const *who=nullptr) const |
| --------—Combo point system----------------— More... | |
| uint8 | GetComboPoints (ObjectGuid const &guid) const |
| Unit * | GetComboTarget () const |
| ObjectGuid const | GetComboTargetGUID () const |
| void | AddComboPoints (Unit *target, int8 count) |
| void | AddComboPoints (int8 count) |
| void | ClearComboPoints () |
| void | SendComboPoints () |
| void | AddComboPointHolder (Unit *unit) |
| void | RemoveComboPointHolder (Unit *unit) |
| void | ClearComboPointHolders () |
| void | SendPetActionFeedback (uint8 msg) |
| -------—Pet responses methods--------------— More... | |
| void | SendPetTalk (uint32 pettalk) |
| void | SendPetAIReaction (ObjectGuid guid) |
| void | propagateSpeedChange () |
| -------—End of Pet responses methods-------— More... | |
| void | ClearAllReactives () |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateAuraForGroup (uint8 slot) |
| bool | CanProc () |
| void | SetCantProc (bool apply) |
| void | AddPetAura (PetAura const *petSpell) |
| void | RemovePetAura (PetAura const *petSpell) |
| void | CastPetAura (PetAura const *aura) |
| bool | IsPetAura (Aura const *aura) |
| uint32 | GetModelForForm (ShapeshiftForm form) const |
| uint32 | GetModelForTotem (PlayerTotemType totemType) |
| void | SetRedirectThreat (ObjectGuid guid, uint32 pct) |
| void | ResetRedirectThreat () |
| void | ModifyRedirectThreat (int32 amount) |
| uint32 | GetRedirectThreatPercent () |
| Unit * | GetRedirectThreatTarget () const |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry) |
| void | RemoveVehicleKit () |
| Vehicle * | GetVehicleKit () const |
| Vehicle * | GetVehicle () const |
| bool | IsOnVehicle (Unit const *vehicle) const |
| Unit * | GetVehicleBase () const |
| Creature * | GetVehicleCreatureBase () const |
| ObjectGuid | GetTransGUID () const override |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) More... | |
| bool | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| void | EnterVehicleUnattackable (Unit *base, int8 seatId=-1) |
| void | ExitVehicle (Position const *exitPosition=nullptr) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | _ExitVehicle (Position const *exitPosition=nullptr) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
| void | BuildMovementPacket (ByteBuffer *data) const |
| virtual bool | CanSwim () const |
| this method checks the current flag of a unit More... | |
| bool | IsLevitating () const |
| bool | IsWalking () const |
| bool | isMoving () const |
| bool | isTurning () const |
| bool | IsHovering () const |
| bool | isSwimming () const |
| virtual bool | CanFly () const =0 |
| bool | IsFlying () const |
| bool | IsFalling () const |
| float | GetHoverHeight () const |
| virtual bool | CanEnterWater () const =0 |
| void | RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker) |
| virtual float | GetFollowAngle () const |
| void | OutDebugInfo () const |
| virtual bool | isBeingLoaded () const |
| bool | IsDuringRemoveFromWorld () const |
| Pet * | ToPet () |
| Totem * | ToTotem () |
| TempSummon * | ToTempSummon () |
| const TempSummon * | ToTempSummon () const |
| void | AddPointedBy (SafeUnitPointer *sup) |
| void | RemovePointedBy (SafeUnitPointer *sup) |
| void | ExecuteDelayedUnitRelocationEvent () |
| void | ExecuteDelayedUnitAINotifyEvent () |
| virtual bool | HasSpellCooldown (uint32) const |
| virtual bool | HasSpellItemCooldown (uint32, uint32) const |
| virtual void | AddSpellCooldown (uint32, uint32, uint32, bool needSendToClient=false, bool forceSendToSpectator=false) |
| bool | CanApplyResilience () const |
| void | PetSpellFail (SpellInfo const *spellInfo, Unit *target, uint32 result) |
| int32 | CalculateAOEDamageReduction (int32 damage, uint32 schoolMask, Unit *caster) const |
| ObjectGuid | GetTarget () const |
| virtual void | SetTarget (ObjectGuid=ObjectGuid::Empty)=0 |
| void | SetInstantCast (bool set) |
| bool | CanInstantCast () const |
| virtual void | Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target) |
| virtual void | Say (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | Yell (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false) |
| virtual void | Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target) |
| virtual void | Say (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | Yell (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (uint32 textId, Player *target, bool isBossWhisper=false) |
| float | GetCollisionHeight () const override |
| Return collision height sent to client. More... | |
| float | GetCollisionWidth () const override |
| this method gets the diameter of a Unit by DB if any value is defined, otherwise it gets the value by the DBC More... | |
| float | GetCollisionRadius () const override |
| this method gets the radius of a Unit by DB if any value is defined, otherwise it gets the value by the DBC More... | |
| void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override |
| virtual void | ProcessTerrainStatusUpdate () |
| bool | CanRestoreMana (SpellInfo const *spellInfo) const |
| std::string | GetDebugInfo () const override |
Public Member Functions inherited from WorldObject | |
| ~WorldObject () override | |
| virtual void | Update (uint32) |
| void | _Create (ObjectGuid::LowType guidlow, HighGuid guidhigh, uint32 phaseMask) |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
| void | GetNearPoint2D (float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle, float controlZ=0, Position const *startPos=nullptr) const |
| void | GetVoidClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0, float controlZ=0) const |
| bool | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0, WorldObject const *forWho=nullptr, bool force=false) const |
| void | MovePosition (Position &pos, float dist, float angle) |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| Position | GetFirstCollisionPosition (float startX, float startY, float startZ, float destX, float destY) |
| Position | GetFirstCollisionPosition (float destX, float destY, float destZ) |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | GetChargeContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| float | GetObjectSize () const |
| virtual float | GetCombatReach () const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| void | GetRandomPoint (const Position &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| Position | GetRandomPoint (const Position &srcPos, float distance) const |
| uint32 | GetInstanceId () const |
| virtual void | SetPhaseMask (uint32 newPhaseMask, bool update) |
| uint32 | GetPhaseMask () const |
| bool | InSamePhase (WorldObject const *obj) const |
| bool | InSamePhase (uint32 phasemask) const |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsOutdoors () const |
| LiquidData const & | GetLiquidData () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string const &newname) |
| virtual std::string const & | GetNameForLocaleIdx (LocaleConstant) const |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (const Position &pos) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance2d (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (const Position *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (const Position *pos, float dist) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }) const |
| Position | GetHitSpherePointFor (Position const &dest, Optional< float > collisionHeight={ }) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z, Optional< float > collisionHeight={ }) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=M_PI) const |
| bool | isInBack (WorldObject const *target, float arc=M_PI) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | CleanupsBeforeDelete (bool finalCleanup=true) |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool, bool includeMargin=false, Player const *skipped_rcvr=nullptr) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| virtual uint8 | getLevelForTarget (WorldObject const *) const |
| void | PlayDistanceSound (uint32 sound_id, Player *target=nullptr) |
| void | PlayDirectSound (uint32 sound_id, Player *target=nullptr) |
| void | PlayDirectMusic (uint32 music_id, Player *target=nullptr) |
| void | SendObjectDeSpawnAnim (ObjectGuid guid) |
| virtual void | SaveRespawnTime () |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| virtual float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false, bool checkAlert=false) const |
| void | SendPlayMusic (uint32 Music, bool OnlySelf) |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| void | ClearZoneScript () |
| ZoneScript * | GetZoneScript () const |
| TempSummon * | SummonCreature (uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr) const |
| TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, SummonPropertiesEntry const *properties=nullptr) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, bool setLevel=false, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool onlySpawned=false) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float distance=0) const |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| void | GetDeadCreatureListInGrid (std::list< Creature * > &lList, float maxSearchRange, bool alive=false) const |
| void | DestroyForNearbyPlayers () |
| virtual void | UpdateObjectVisibility (bool forced=true, bool fromUpdate=false) |
| void | BuildUpdate (UpdateDataMapType &data_map, UpdatePlayerSet &player_set) override |
| void | GetCreaturesWithEntryInRange (std::list< Creature * > &creatureList, float radius, uint32 entry) |
| void | SetPositionDataUpdate () |
| void | UpdatePositionData () |
| void | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| void | RemoveFromNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| bool | NotifyExecuted (uint16 f) const |
| void | SetNotified (uint16 f) |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| bool | IsFarVisible () const |
| bool | IsVisibilityOverridden () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| void | SetWorldObject (bool apply) |
| bool | IsPermanentWorldObject () const |
| bool | IsWorldObject () const |
| bool | IsInWintergrasp () const |
| Transport * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| virtual ObjectGuid | GetTransGUID () const |
| void | SetTransport (Transport *t) |
| virtual float | GetStationaryX () const |
| virtual float | GetStationaryY () const |
| virtual float | GetStationaryZ () const |
| virtual float | GetStationaryO () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| float | GetFloorZ () const |
| float | GetMinHeightInWater () const |
| Get the minimum height of a object that should be in water to start floating/swim. More... | |
| virtual float | GetCollisionHeight () const |
| virtual float | GetCollisionWidth () const |
| virtual float | GetCollisionRadius () const |
| void | AddAllowedLooter (ObjectGuid guid) |
| void | ResetAllowedLooters () |
| void | SetAllowedLooters (GuidUnorderedSet const looters) |
| bool | HasAllowedLooter (ObjectGuid guid) const |
| GuidUnorderedSet const & | GetAllowedLooters () const |
| std::string | GetDebugInfo () const override |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| bool | IsInWorld () const |
| virtual void | AddToWorld () |
| virtual void | RemoveFromWorld () |
| ObjectGuid | GetGUID () const |
| PackedGuid const & | GetPackGUID () const |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| virtual void | SetObjectScale (float scale) |
| virtual uint32 | GetDynamicFlags () const |
| bool | HasDynamicFlag (uint32 flag) const |
| virtual void | SetDynamicFlag (uint32 flag) |
| virtual void | RemoveDynamicFlag (uint32 flag) |
| virtual void | ReplaceAllDynamicFlags (uint32 flag) |
| TypeID | GetTypeId () const |
| bool | isType (uint16 mask) const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const |
| virtual void | DestroyForPlayer (Player *target, bool onDeath=false) const |
| int32 | GetInt32Value (uint16 index) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| float | GetFloatValue (uint16 index) const |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| ObjectGuid | GetGuidValue (uint16 index) const |
| void | SetInt32Value (uint16 index, int32 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetGuidValue (uint16 index, ObjectGuid value) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| bool | AddGuidValue (uint16 index, ObjectGuid value) |
| bool | RemoveGuidValue (uint16 index, ObjectGuid value) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModUInt64Value (uint16 index, int32 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | ApplyPercentModFloatValue (uint16 index, float val, bool apply) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| bool | HasFlag (uint16 index, uint32 flag) const |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ClearUpdateMask (bool remove) |
| uint16 | GetValuesCount () const |
| virtual bool | hasQuest (uint32) const |
| virtual bool | hasInvolvedQuest (uint32) const |
| virtual void | BuildUpdate (UpdateDataMapType &, UpdatePlayerSet &) |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | ForceValuesUpdateAtIndex (uint32) |
| bool | IsPlayer () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| virtual std::string | GetDebugInfo () const |
Public Member Functions inherited from WorldLocation | |
| WorldLocation (uint32 _mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) | |
| WorldLocation (uint32 mapId, Position const &position) | |
| void | WorldRelocate (const WorldLocation &loc) |
| void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
| void | SetMapId (uint32 mapId) |
| uint32 | GetMapId () const |
| void | GetWorldLocation (uint32 &mapId, float &x, float &y) const |
| void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z) const |
| void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z, float &o) const |
| void | GetWorldLocation (WorldLocation *location) const |
| WorldLocation | GetWorldLocation () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| Position (float x=0, float y=0, float z=0, float o=0) | |
| Position (Position const &loc) | |
| Position (Position &&)=default | |
| Position & | operator= (const Position &)=default |
| Position & | operator= (Position &&)=default |
| bool | operator== (Position const &a) const |
| bool | operator!= (Position const &a) |
| operator G3D::Vector3 () const | |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float orientation) |
| void | Relocate (const Position &pos) |
| void | Relocate (const Position *pos) |
| void | RelocatePolarOffset (float angle, float dist, float z=0.0f) |
| void | RelocateOffset (const Position &offset) |
| void | SetOrientation (float orientation) |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| Position | GetPosition () const |
| Position::PositionXYZStreamer | PositionXYZStream () |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| bool | IsPositionValid () const |
| float | GetExactDist2dSq (const float x, const float y) const |
| float | GetExactDist2dSq (Position const &pos) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const &pos) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| void | GetPositionOffsetTo (const Position &endPos, Position &retOffset) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAngle (const Position *pos) const |
| float | GetAngle (float x, float y) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | GetRelativeAngle (const Position *pos) const |
| float | GetRelativeAngle (float x, float y) const |
| float | ToAbsoluteAngle (float relAngle) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (const Position *pos, float dist) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (const Position *pos, float dist) const |
| bool | IsWithinBox (const Position ¢er, float xradius, float yradius, float zradius) const |
| bool | HasInArc (float arcangle, const Position *pos, float targetRadius=0.0f) const |
| bool | HasInLine (Position const *pos, float width) const |
| std::string | ToString () const |
Static Public Member Functions | |
| static float | GetEffectiveResistChance (Unit const *owner, SpellSchoolMask schoolMask, Unit const *victim) |
| static void | DealDamageMods (Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true, bool allowGM=false, Spell const *spell=nullptr) |
| static void | Kill (Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr) |
| static int32 | DealHeal (Unit *healer, Unit *victim, uint32 addhealth) |
| static void | ProcDamageAndSpell (Unit *actor, Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=BASE_ATTACK, SpellInfo const *procSpellInfo=nullptr, SpellInfo const *procAura=nullptr, int8 procAuraEffectIndex=-1, Spell const *procSpell=nullptr, DamageInfo *damageInfo=nullptr, HealInfo *healInfo=nullptr, uint32 procPhase=2) |
| static void | ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit const *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit const *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr, uint8 effIndex=MAX_SPELL_EFFECTS) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit const *victim, const uint32 damage, SpellInfo const *spellInfo, uint8 attackerLevel=0, WeaponAttackType attackType=MAX_ATTACK) |
| static void | CalcAbsorbResist (DamageInfo &dmgInfo, bool Splited=false) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
| static void | HandleSafeUnitPointersOnDelete (Unit *thisUnit) |
Static Public Member Functions inherited from Object | |
| static ObjectGuid | GetGUID (Object const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::list< DynamicObject * > | DynObjectList |
| typedef GuidList | GameObjectList |
| typedef std::map< ObjectGuid, float > | CharmThreatMap |
Protected Member Functions | |
| Unit (bool isWorldObject) | |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const override |
| void | _UpdateSpells (uint32 time) |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| void | SetFeared (bool apply) |
| void | SetConfused (bool apply) |
| void | SetStunned (bool apply) |
| void | SetRooted (bool apply, bool isStun=false) |
Protected Member Functions inherited from WorldObject | |
| WorldObject (bool isWorldObject) | |
| virtual void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) |
| void | SetLocationMapId (uint32 _mapId) |
| void | SetLocationInstanceId (uint32 _instanceId) |
| virtual bool | IsNeverVisible () const |
| virtual bool | IsAlwaysVisibleFor (WorldObject const *) const |
| virtual bool | IsInvisibleDueToDespawn () const |
| virtual bool | IsAlwaysDetectableFor (WorldObject const *) const |
Protected Member Functions inherited from Object | |
| Object () | |
| void | _InitValues () |
| void | _Create (ObjectGuid::LowType guidlow, uint32 entry, HighGuid guidhigh) |
| std::string | _ConcatFields (uint16 startIndex, uint16 size) const |
| bool | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
| uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
| void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
| virtual void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const |
| virtual void | AddToObjectUpdate ()=0 |
| virtual void | RemoveFromObjectUpdate ()=0 |
| void | AddToObjectUpdateIfNeeded () |
Private Member Functions | |
| bool | IsTriggeredAtSpellProcEvent (Unit *victim, Aura *aura, WeaponAttackType attType, bool isVictim, bool active, SpellProcEventEntry const *&spellProcEvent, ProcEventInfo const &eventInfo) |
| bool | HandleDummyAuraProc (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown, Spell const *spellProc=nullptr) |
| bool | HandleAuraProc (Unit *victim, uint32 damage, Aura *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown, bool *handled) |
| bool | HandleProcTriggerSpell (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown, uint32 procPhase, ProcEventInfo &eventInfo) |
| bool | HandleOverrideClassScriptAuraProc (Unit *victim, uint32 damage, AuraEffect *triggeredByAura, SpellInfo const *procSpell, uint32 cooldown) |
| bool | HandleAuraRaidProcFromChargeWithValue (AuraEffect *triggeredByAura) |
| bool | HandleAuraRaidProcFromCharge (AuraEffect *triggeredByAura) |
| void | UpdateSplineMovement (uint32 t_diff) |
| void | UpdateSplinePosition () |
| float | GetCombatRatingReduction (CombatRating cr) const |
| uint32 | GetCombatRatingDamageReduction (CombatRating cr, float rate, float cap, uint32 damage) const |
| float | processDummyAuras (float TakenTotalMod) const |
Private Attributes | |
| uint32 | m_state |
| uint32 | m_CombatTimer |
| uint32 | m_lastManaUse |
| Diminishing | m_Diminishing |
| HostileRefMgr | m_HostileRefMgr |
| FollowerRefMgr | m_FollowingRefMgr |
| Unit * | m_comboTarget |
| int8 | m_comboPoints |
| std::unordered_set< Unit * > | m_ComboPointHolders |
| RedirectThreatInfo | _redirectThreatInfo |
| bool | m_cleanupDone |
| bool | m_duringRemoveFromWorld |
| uint32 | _oldFactionId |
| faction before charm More... | |
| bool | _isWalkingBeforeCharm |
| Are we walking before we were charmed? More... | |
| uint32 | _lastExtraAttackSpell |
| std::unordered_map< ObjectGuid, uint32 > | extraAttacksTargets |
| ObjectGuid | _lastDamagedTargetGuid |
| typedef std::unordered_set<Unit*> Unit::AttackerSet |
| typedef std::list<AuraApplication*> Unit::AuraApplicationList |
| typedef std::multimap<uint32, AuraApplication*> Unit::AuraApplicationMap |
| typedef std::pair<AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator> Unit::AuraApplicationMapBounds |
| typedef std::pair<AuraApplicationMap::iterator, AuraApplicationMap::iterator> Unit::AuraApplicationMapBoundsNonConst |
| typedef std::list<AuraEffect*> Unit::AuraEffectList |
| typedef std::list<Aura*> Unit::AuraList |
| typedef std::multimap<uint32, Aura*> Unit::AuraMap |
| typedef std::pair<AuraMap::const_iterator, AuraMap::const_iterator> Unit::AuraMapBounds |
| typedef std::pair<AuraMap::iterator, AuraMap::iterator> Unit::AuraMapBoundsNonConst |
| typedef std::multimap<AuraStateType, AuraApplication*> Unit::AuraStateAurasMap |
| typedef std::pair<AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator> Unit::AuraStateAurasMapBounds |
|
protected |
| typedef std::set<Unit*> Unit::ControlSet |
| typedef std::list<DiminishingReturn> Unit::Diminishing |
|
protected |
|
protected |
| typedef std::set<PetAura const*> Unit::PetAuraSet |
| typedef std::map<uint8, AuraApplication*> Unit::VisibleAuraMap |
|
override |
Definition at line 358 of file Unit.cpp.
|
explicitprotected |
Definition at line 205 of file Unit.cpp.
|
inline |
Definition at line 4342 of file Unit.cpp.
| void Unit::_ApplyAura | ( | AuraApplication * | aurApp, |
| uint8 | effMask | ||
| ) |
Definition at line 4433 of file Unit.cpp.
Definition at line 4419 of file Unit.cpp.
| AuraApplication * Unit::_CreateAuraApplication | ( | Aura * | aura, |
| uint8 | effMask | ||
| ) |
Definition at line 4381 of file Unit.cpp.
|
protected |
| void Unit::_EnterVehicle | ( | Vehicle * | vehicle, |
| int8 | seatId, | ||
| AuraApplication const * | aurApp = nullptr |
||
| ) |
Definition at line 19667 of file Unit.cpp.
| void Unit::_ExitVehicle | ( | Position const * | exitPosition = nullptr | ) |
Definition at line 19787 of file Unit.cpp.
Definition at line 13890 of file Unit.cpp.
| bool Unit::_IsValidAttackTarget | ( | Unit const * | target, |
| SpellInfo const * | bySpell, | ||
| WorldObject const * | obj = nullptr |
||
| ) | const |
Definition at line 13770 of file Unit.cpp.
| void Unit::_RegisterAuraEffect | ( | AuraEffect * | aurEff, |
| bool | apply | ||
| ) |
| void Unit::_RegisterDynObject | ( | DynamicObject * | dynObj | ) |
|
inline |
| void Unit::_RemoveNoStackAuraApplicationsDueToAura | ( | Aura * | aura | ) |
| void Unit::_RemoveNoStackAurasDueToAura | ( | Aura * | aura | ) |
Definition at line 4587 of file Unit.cpp.
| Aura * Unit::_TryStackingOrRefreshingExistingAura | ( | SpellInfo const * | newAura, |
| uint8 | effMask, | ||
| Unit * | caster, | ||
| int32 * | baseAmount = nullptr, |
||
| Item * | castItem = nullptr, |
||
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| bool | periodicReset = false |
||
| ) |
Definition at line 4282 of file Unit.cpp.
| void Unit::_UnapplyAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | removeMode | ||
| ) |
Definition at line 4566 of file Unit.cpp.
| void Unit::_UnapplyAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | removeMode | ||
| ) |
Definition at line 4486 of file Unit.cpp.
| void Unit::_UnregisterDynObject | ( | DynamicObject * | dynObj | ) |
|
protected |
Definition at line 3841 of file Unit.cpp.
|
protected |
Definition at line 3785 of file Unit.cpp.
Definition at line 18910 of file Unit.cpp.
Definition at line 18895 of file Unit.cpp.
|
inline |
Definition at line 2294 of file Unit.h.
Definition at line 16899 of file Unit.cpp.
| void Unit::AddExtraAttacks | ( | uint32 | count | ) |
Definition at line 2715 of file Unit.cpp.
|
inline |
| void Unit::AddGameObject | ( | GameObject * | gameObj | ) |
Definition at line 6079 of file Unit.cpp.
|
inline |
|
inline |
Definition at line 2160 of file Unit.h.
| void Unit::AddPetAura | ( | PetAura const * | petSpell | ) |
Definition at line 17347 of file Unit.cpp.
| void Unit::AddPlayerToVision | ( | Player * | player | ) |
|
inline |
Definition at line 2400 of file Unit.h.
| void Unit::AddThreat | ( | Unit * | victim, |
| float | fThreat, | ||
| SpellSchoolMask | schoolMask = SPELL_SCHOOL_MASK_NORMAL, |
||
| SpellInfo const * | threatSpell = nullptr |
||
| ) |
Definition at line 14523 of file Unit.cpp.
|
overridevirtual |
Reimplemented from WorldObject.
|
inline |
|
inline |
Definition at line 1408 of file Unit.h.
| void Unit::ApplyAttackTimePercentMod | ( | WeaponAttackType | att, |
| float | val, | ||
| bool | apply | ||
| ) |
Definition at line 17115 of file Unit.cpp.
| void Unit::ApplyCastTimePercentMod | ( | float | val, |
| bool | apply | ||
| ) |
| void Unit::ApplyDiminishingAura | ( | DiminishingGroup | group, |
| bool | apply | ||
| ) |
Definition at line 14983 of file Unit.cpp.
| float Unit::ApplyDiminishingToDuration | ( | DiminishingGroup | group, |
| int32 & | duration, | ||
| Unit * | caster, | ||
| DiminishingLevels | Level, | ||
| int32 | limitduration | ||
| ) |
Definition at line 14904 of file Unit.cpp.
| float Unit::ApplyEffectModifiers | ( | SpellInfo const * | spellProto, |
| uint8 | effect_index, | ||
| float | value | ||
| ) | const |
Definition at line 14686 of file Unit.cpp.
|
static |
Definition at line 18959 of file Unit.cpp.
|
inline |
Definition at line 2024 of file Unit.h.
|
inline |
Definition at line 2025 of file Unit.h.
| void Unit::ApplySpellDispelImmunity | ( | SpellInfo const * | spellProto, |
| DispelType | type, | ||
| bool | apply | ||
| ) |
Definition at line 13320 of file Unit.cpp.
| void Unit::ApplySpellImmune | ( | uint32 | spellId, |
| uint32 | op, | ||
| uint32 | type, | ||
| bool | apply, | ||
| SpellImmuneBlockType | blockType = SPELL_BLOCK_TYPE_ALL |
||
| ) |
Definition at line 13293 of file Unit.cpp.
|
inline |
Definition at line 2031 of file Unit.h.
| void Unit::ApplyStatPercentBuffMod | ( | Stats | stat, |
| float | val, | ||
| bool | apply | ||
| ) |
Definition at line 15194 of file Unit.cpp.
| float Unit::ApplyTotalThreatModifier | ( | float | fThreat, |
| SpellSchoolMask | schoolMask = SPELL_SCHOOL_MASK_NORMAL |
||
| ) |
Definition at line 14511 of file Unit.cpp.
| bool Unit::Attack | ( | Unit * | victim, |
| bool | meleeAttack | ||
| ) |
Definition at line 10233 of file Unit.cpp.
| void Unit::AttackerStateUpdate | ( | Unit * | victim, |
| WeaponAttackType | attType = BASE_ATTACK, |
||
| bool | extra = false, |
||
| bool | ignoreCasting = false |
||
| ) |
Definition at line 2515 of file Unit.cpp.
| bool Unit::AttackStop | ( | ) |
Definition at line 10356 of file Unit.cpp.
Definition at line 10484 of file Unit.cpp.
| void Unit::BuildCooldownPacket | ( | WorldPacket & | data, |
| uint8 | flags, | ||
| PacketCooldowns const & | cooldowns | ||
| ) |
Definition at line 21010 of file Unit.cpp.
| void Unit::BuildCooldownPacket | ( | WorldPacket & | data, |
| uint8 | flags, | ||
| uint32 | spellId, | ||
| uint32 | cooldown | ||
| ) |
| void Unit::BuildHeartBeatMsg | ( | WorldPacket * | data | ) | const |
Definition at line 2034 of file Object.cpp.
| void Unit::BuildMovementPacket | ( | ByteBuffer * | data | ) | const |
Definition at line 19910 of file Unit.cpp.
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 20792 of file Unit.cpp.
|
static |
Definition at line 2105 of file Unit.cpp.
|
static |
Definition at line 1989 of file Unit.cpp.
|
static |
Definition at line 2452 of file Unit.cpp.
Definition at line 14713 of file Unit.cpp.
Definition at line 20476 of file Unit.cpp.
| uint32 Unit::CalculateDamage | ( | WeaponAttackType | attType, |
| bool | normalized, | ||
| bool | addTotalPct, | ||
| uint8 | itemDamagesMask = 0 |
||
| ) |
Definition at line 2934 of file Unit.cpp.
| float Unit::CalculateDefaultCoefficient | ( | SpellInfo const * | spellInfo, |
| DamageEffectType | damagetype | ||
| ) | const |
Definition at line 17257 of file Unit.cpp.
| float Unit::CalculateLevelPenalty | ( | SpellInfo const * | spellProto | ) | const |
Definition at line 2990 of file Unit.cpp.
| void Unit::CalculateMeleeDamage | ( | Unit * | victim, |
| CalcDamageInfo * | damageInfo, | ||
| WeaponAttackType | attackType = BASE_ATTACK, |
||
| const bool | sittingVictim = false |
||
| ) |
Definition at line 1460 of file Unit.cpp.
|
pure virtual |
| void Unit::CalculateSpellDamageTaken | ( | SpellNonMeleeDamage * | damageInfo, |
| int32 | damage, | ||
| SpellInfo const * | spellInfo, | ||
| WeaponAttackType | attackType = BASE_ATTACK, |
||
| bool | crit = false |
||
| ) |
Definition at line 1296 of file Unit.cpp.
| bool Unit::CanHaveThreatList | ( | ) | const |
Definition at line 14484 of file Unit.cpp.
| bool Unit::CanRestoreMana | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 21220 of file Unit.cpp.
|
virtual |
this method checks the current flag of a unit
These flags can be set within the database or dynamically changed at runtime UNIT_FLAG_SWIMMING must be updated when a unit enters a swimmable area
Reimplemented in Creature.
Definition at line 19974 of file Unit.cpp.
|
inline |
| SpellCastResult Unit::CastCustomSpell | ( | uint32 | spellId, |
| CustomSpellValues const & | value, | ||
| Unit * | victim = nullptr, |
||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, |
||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1251 of file Unit.cpp.
| SpellCastResult Unit::CastCustomSpell | ( | uint32 | spellId, |
| SpellValueMod | mod, | ||
| int32 | value, | ||
| Unit * | victim, | ||
| bool | triggered, | ||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1237 of file Unit.cpp.
| SpellCastResult Unit::CastCustomSpell | ( | uint32 | spellId, |
| SpellValueMod | mod, | ||
| int32 | value, | ||
| Unit * | victim = nullptr, |
||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, |
||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1244 of file Unit.cpp.
| SpellCastResult Unit::CastCustomSpell | ( | Unit * | victim, |
| uint32 | spellId, | ||
| int32 const * | bp0, | ||
| int32 const * | bp1, | ||
| int32 const * | bp2, | ||
| bool | triggered, | ||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1225 of file Unit.cpp.
| void Unit::CastDelayedSpellWithPeriodicAmount | ( | Unit * | caster, |
| uint32 | spellId, | ||
| AuraType | auraType, | ||
| int32 | addAmount, | ||
| uint8 | effectIndex = 0 |
||
| ) |
Definition at line 20297 of file Unit.cpp.
| void Unit::CastPetAura | ( | PetAura const * | aura | ) |
| SpellCastResult Unit::CastSpell | ( | float | x, |
| float | y, | ||
| float | z, | ||
| uint32 | spellId, | ||
| bool | triggered, | ||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1266 of file Unit.cpp.
| SpellCastResult Unit::CastSpell | ( | GameObject * | go, |
| uint32 | spellId, | ||
| bool | triggered, | ||
| Item * | castItem = nullptr, |
||
| AuraEffect * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1281 of file Unit.cpp.
| SpellCastResult Unit::CastSpell | ( | SpellCastTargets const & | targets, |
| SpellInfo const * | spellInfo, | ||
| CustomSpellValues const * | value, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, |
||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1168 of file Unit.cpp.
| SpellCastResult Unit::CastSpell | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| bool | triggered, | ||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1213 of file Unit.cpp.
| SpellCastResult Unit::CastSpell | ( | Unit * | victim, |
| SpellInfo const * | spellInfo, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, |
||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1218 of file Unit.cpp.
| SpellCastResult Unit::CastSpell | ( | Unit * | victim, |
| uint32 | spellId, | ||
| bool | triggered, | ||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
Definition at line 1196 of file Unit.cpp.
| SpellCastResult Unit::CastSpell | ( | Unit * | victim, |
| uint32 | spellId, | ||
| TriggerCastFlags | triggerFlags = TRIGGERED_NONE, |
||
| Item * | castItem = nullptr, |
||
| AuraEffect const * | triggeredByAura = nullptr, |
||
| ObjectGuid | originalCaster = ObjectGuid::Empty |
||
| ) |
| void Unit::CastStop | ( | uint32 | except_spellid = 0, |
| bool | withInstant = true |
||
| ) |
| void Unit::ChangeSeat | ( | int8 | seatId, |
| bool | next = true |
||
| ) |
Definition at line 19730 of file Unit.cpp.
| void Unit::CleanupBeforeRemoveFromMap | ( | bool | finalCleanup | ) |
Definition at line 15579 of file Unit.cpp.
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 15609 of file Unit.cpp.
| void Unit::ClearAllReactives | ( | ) |
Definition at line 16988 of file Unit.cpp.
| void Unit::ClearComboPointHolders | ( | ) |
Definition at line 16980 of file Unit.cpp.
| void Unit::ClearComboPoints | ( | ) |
Definition at line 16925 of file Unit.cpp.
|
inline |
Definition at line 1332 of file Unit.h.
| void Unit::ClearInCombat | ( | ) |
Definition at line 13702 of file Unit.cpp.
| void Unit::ClearInPetCombat | ( | ) |
|
inline |
| void Unit::CombatStart | ( | Unit * | target, |
| bool | initialAggro = true |
||
| ) |
Definition at line 13529 of file Unit.cpp.
Definition at line 13600 of file Unit.cpp.
| void Unit::CombatStop | ( | bool | includingCast = false | ) |
Definition at line 10389 of file Unit.cpp.
| void Unit::CombatStopWithPets | ( | bool | includingCast = false | ) |
Definition at line 17401 of file Unit.cpp.
Definition at line 17425 of file Unit.cpp.
Definition at line 18747 of file Unit.cpp.
|
static |
Definition at line 814 of file Unit.cpp.
Definition at line 804 of file Unit.cpp.
Definition at line 10899 of file Unit.cpp.
| void Unit::DealMeleeDamage | ( | CalcDamageInfo * | damageInfo, |
| bool | durabilityLoss | ||
| ) |
Definition at line 1809 of file Unit.cpp.
| void Unit::DealSpellDamage | ( | SpellNonMeleeDamage * | damageInfo, |
| bool | durabilityLoss, | ||
| Spell const * | spell = nullptr |
||
| ) |
Definition at line 1434 of file Unit.cpp.
| void Unit::DelayOwnedAuras | ( | uint32 | spellId, |
| ObjectGuid | caster, | ||
| int32 | delaytime | ||
| ) |
Definition at line 5368 of file Unit.cpp.
| void Unit::DeleteCharmInfo | ( | ) |
| void Unit::DisableRotate | ( | bool | apply | ) |
| void Unit::DisableSpline | ( | ) |
| void Unit::Dismount | ( | ) |
Definition at line 13428 of file Unit.cpp.
Definition at line 11215 of file Unit.cpp.
Definition at line 19651 of file Unit.cpp.
| void Unit::ExecuteDelayedUnitAINotifyEvent | ( | ) |
Definition at line 20602 of file Unit.cpp.
| void Unit::ExecuteDelayedUnitRelocationEvent | ( | ) |
Definition at line 20495 of file Unit.cpp.
| void Unit::ExitVehicle | ( | Position const * | exitPosition = nullptr | ) |
This function can be called at upper level code to initialize an exit from the passenger's side.
The following call would not even be executed successfully as the SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without specifying an exitposition. The subsequent call below would return on if (!m_vehicle).
To do: We need to allow SPELL_AURA_CONTROL_VEHICLE unapply handlers in spellscripts to specify exit coordinates and either store those per passenger, or we need to init spline movement based on those coordinates in unapply handlers, and relocate exiting passengers based on Unit::moveSpline data. Either way, Coming Soon(TM)
Definition at line 19749 of file Unit.cpp.
| void Unit::FinishSpell | ( | CurrentSpellTypes | spellType, |
| bool | ok = true |
||
| ) |
Definition at line 4015 of file Unit.cpp.
| Player * Unit::GetAffectingPlayer | ( | ) | const |
Definition at line 10799 of file Unit.cpp.
| float Unit::GetAPMultiplier | ( | WeaponAttackType | attType, |
| bool | normalized | ||
| ) |
Definition at line 17279 of file Unit.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1467 of file Unit.h.
|
inline |
| Aura * Unit::GetAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0 |
||
| ) | const |
Definition at line 5487 of file Unit.cpp.
| AuraApplication * Unit::GetAuraApplication | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraApplication * | except = nullptr |
||
| ) | const |
Definition at line 5468 of file Unit.cpp.
| AuraApplication * Unit::GetAuraApplicationOfRankedSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraApplication * | except = nullptr |
||
| ) | const |
Definition at line 5493 of file Unit.cpp.
Definition at line 5582 of file Unit.cpp.
| AuraEffect * Unit::GetAuraEffect | ( | AuraType | type, |
| SpellFamilyNames | family, | ||
| uint32 | familyFlag1, | ||
| uint32 | familyFlag2, | ||
| uint32 | familyFlag3, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 5440 of file Unit.cpp.
| AuraEffect * Unit::GetAuraEffect | ( | AuraType | type, |
| SpellFamilyNames | name, | ||
| uint32 | iconId, | ||
| uint8 | effIndex | ||
| ) | const |
| AuraEffect * Unit::GetAuraEffect | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 5400 of file Unit.cpp.
| AuraEffect * Unit::GetAuraEffectDummy | ( | uint32 | spellid | ) | const |
| AuraEffect * Unit::GetAuraEffectOfRankedSpell | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | casterGUID = ObjectGuid::Empty |
||
| ) | const |
Definition at line 5414 of file Unit.cpp.
|
inline |
| Aura * Unit::GetAuraOfRankedSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0 |
||
| ) | const |
Definition at line 5505 of file Unit.cpp.
| uint32 Unit::GetCastingTimeForBonus | ( | SpellInfo const * | spellProto, |
| DamageEffectType | damagetype, | ||
| uint32 | CastingTime | ||
| ) | const |
Definition at line 17139 of file Unit.cpp.
| Unit * Unit::GetCharm | ( | ) | const |
Definition at line 10614 of file Unit.cpp.
| Unit * Unit::GetCharmer | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| Player * Unit::GetCharmerOrOwnerPlayerOrPlayerItself | ( | ) | const |
Definition at line 10564 of file Unit.cpp.
|
inline |
|
inline |
|
overridevirtual |
Return collision height sent to client.
Reimplemented from WorldObject.
Definition at line 21110 of file Unit.cpp.
|
overridevirtual |
this method gets the radius of a Unit by DB if any value is defined, otherwise it gets the value by the DBC
If the player is mounted the radius also takes in consideration the mount size
Reimplemented from WorldObject.
Definition at line 21104 of file Unit.cpp.
|
overridevirtual |
this method gets the diameter of a Unit by DB if any value is defined, otherwise it gets the value by the DBC
If the player is mounted the diameter also takes in consideration the mount size
Dismounting case - use basic default model data
Reimplemented from WorldObject.
Definition at line 21067 of file Unit.cpp.
|
private |
|
private |
|
inlineoverridevirtual |
|
inline |
|
inline |
Definition at line 15497 of file Unit.cpp.
|
inline |
| uint32 Unit::GetCreatureType | ( | ) | const |
Definition at line 15039 of file Unit.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 4080 of file Unit.cpp.
|
inline |
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 21299 of file Unit.cpp.
|
virtual |
| DiminishingLevels Unit::GetDiminishing | ( | DiminishingGroup | group | ) |
Definition at line 14864 of file Unit.cpp.
| TransportBase * Unit::GetDirectTransport | ( | ) | const |
| uint32 Unit::GetDiseasesByCaster | ( | ObjectGuid | casterGUID, |
| uint8 | mode = 0 |
||
| ) |
Definition at line 5721 of file Unit.cpp.
| void Unit::GetDispellableAuraList | ( | Unit * | caster, |
| uint32 | dispelMask, | ||
| DispelChargesList & | dispelList | ||
| ) |
Definition at line 5511 of file Unit.cpp.
| uint32 Unit::GetDoTsByCaster | ( | ObjectGuid | casterGUID | ) | const |
Definition at line 5767 of file Unit.cpp.
|
inline |
|
inlineoverridevirtual |
| DynamicObject * Unit::GetDynObject | ( | uint32 | spellId | ) |
Definition at line 6028 of file Unit.cpp.
|
static |
Definition at line 2071 of file Unit.cpp.
| ReputationRank Unit::GetFactionReactionTo | ( | FactionTemplateEntry const * | factionTemplateEntry, |
| Unit const * | target | ||
| ) | const |
Definition at line 10145 of file Unit.cpp.
| FactionTemplateEntry const * Unit::GetFactionTemplateEntry | ( | ) | const |
Definition at line 9995 of file Unit.cpp.
| Unit * Unit::GetFirstControlled | ( | ) | const |
| Minion * Unit::GetFirstMinion | ( | ) | const |
Definition at line 10584 of file Unit.cpp.
|
inlinevirtual |
| GameObject * Unit::GetGameObject | ( | uint32 | spellId | ) | const |
| Guardian * Unit::GetGuardianPet | ( | ) | const |
Definition at line 10599 of file Unit.cpp.
Definition at line 14013 of file Unit.cpp.
|
inline |
|
inline |
|
inlineoverridevirtual |
Definition at line 10967 of file Unit.cpp.
| int32 Unit::GetMaxNegativeAuraModifierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 6004 of file Unit.cpp.
Definition at line 5900 of file Unit.cpp.
Definition at line 5952 of file Unit.cpp.
| int32 Unit::GetMaxPositiveAuraModifierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 5990 of file Unit.cpp.
| int32 Unit::GetMaxPositiveAuraModifierByMiscMask | ( | AuraType | auratype, |
| uint32 | misc_mask, | ||
| const AuraEffect * | except = nullptr |
||
| ) | const |
Definition at line 5886 of file Unit.cpp.
Definition at line 5938 of file Unit.cpp.
Definition at line 1545 of file Unit.h.
Definition at line 3075 of file Unit.cpp.
Definition at line 2617 of file Unit.cpp.
Definition at line 1581 of file Unit.h.
|
pure virtual |
Definition at line 11005 of file Unit.cpp.
| float Unit::GetMeleeRange | ( | Unit const * | target | ) | const |
|
inline |
Definition at line 1348 of file Unit.h.
|
inline |
| uint32 Unit::GetModelForForm | ( | ShapeshiftForm | form | ) | const |
Definition at line 19233 of file Unit.cpp.
| uint32 Unit::GetModelForTotem | ( | PlayerTotemType | totemType | ) |
Definition at line 19433 of file Unit.cpp.
| float Unit::GetModifierValue | ( | UnitMods | unitMod, |
| UnitModifierType | modifierType | ||
| ) | const |
|
inline |
|
inline |
| Unit * Unit::GetNextRandomRaidMemberOrPet | ( | float | radius | ) |
Definition at line 11062 of file Unit.cpp.
| Aura * Unit::GetOwnedAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| Aura * | except = nullptr |
||
| ) | const |
Definition at line 4680 of file Unit.cpp.
| Unit * Unit::GetOwner | ( | ) | const |
|
inline |
| void Unit::GetPartyMembers | ( | std::list< Unit * > & | units | ) |
Definition at line 18851 of file Unit.cpp.
|
inline |
| uint32 Unit::GetPhaseByAuras | ( | ) | const |
Definition at line 13355 of file Unit.cpp.
| void Unit::GetProcAurasTriggeredOnEvent | ( | std::list< AuraApplication * > & | aurasTriggeringProc, |
| std::list< AuraApplication * > * | procAuras, | ||
| ProcEventInfo | eventInfo | ||
| ) |
Definition at line 16617 of file Unit.cpp.
| uint8 Unit::getRace | ( | bool | original = false | ) | const |
|
inline |
| bool Unit::GetRandomContactPoint | ( | Unit const * | target, |
| float & | x, | ||
| float & | y, | ||
| float & | z, | ||
| bool | force = false |
||
| ) | const |
Definition at line 718 of file Unit.cpp.
| ReputationRank Unit::GetReactionTo | ( | Unit const * | target, |
| bool | checkOriginalFaction = false |
||
| ) | const |
Definition at line 10025 of file Unit.cpp.
| Unit * Unit::GetRedirectThreatTarget | ( | ) | const |
Definition at line 19531 of file Unit.cpp.
| uint32 Unit::GetResistance | ( | SpellSchoolMask | mask | ) | const |
|
inline |
|
inline |
Definition at line 2022 of file Unit.h.
|
inline |
|
inline |
|
inline |
|
pure virtual |
|
inline |
| float Unit::GetSpeed | ( | UnitMoveType | mtype | ) | const |
Definition at line 14296 of file Unit.cpp.
|
inline |
Definition at line 15004 of file Unit.cpp.
| Player * Unit::GetSpellModOwner | ( | ) | const |
| SpellSchools Unit::GetSpellSchoolByAuraGroup | ( | UnitMods | unitMod | ) | const |
Definition at line 15202 of file Unit.cpp.
Definition at line 15234 of file Unit.cpp.
|
inline |
| float Unit::GetTotalAttackPowerValue | ( | WeaponAttackType | attType, |
| Unit * | pVictim = nullptr |
||
| ) | const |
Definition at line 15285 of file Unit.cpp.
Definition at line 5810 of file Unit.cpp.
Definition at line 5790 of file Unit.cpp.
| int32 Unit::GetTotalAuraModifierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
| float Unit::GetTotalAuraModValue | ( | UnitMods | unitMod | ) | const |
| float Unit::GetTotalAuraMultiplier | ( | AuraType | auratype | ) | const |
| float Unit::GetTotalAuraMultiplierByAffectMask | ( | AuraType | auratype, |
| SpellInfo const * | affectedSpell | ||
| ) | const |
Definition at line 5978 of file Unit.cpp.
Definition at line 5874 of file Unit.cpp.
Definition at line 5926 of file Unit.cpp.
| float Unit::GetTotalStatValue | ( | Stats | stat, |
| float | additionalValue = 0.0f |
||
| ) | const |
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 18788 of file Unit.cpp.
| float Unit::GetUnitBlockChance | ( | ) | const |
Definition at line 3643 of file Unit.cpp.
| float Unit::GetUnitCriticalChance | ( | WeaponAttackType | attackType, |
| Unit const * | victim | ||
| ) | const |
Definition at line 3669 of file Unit.cpp.
| float Unit::GetUnitDodgeChance | ( | ) | const |
Definition at line 3581 of file Unit.cpp.
|
inline |
| float Unit::GetUnitMissChance | ( | WeaponAttackType | attType | ) | const |
Definition at line 3628 of file Unit.cpp.
| float Unit::GetUnitParryChance | ( | ) | const |
Definition at line 3598 of file Unit.cpp.
|
inline |
|
inline |
| Unit * Unit::GetVehicleBase | ( | ) | const |
| Creature * Unit::GetVehicleCreatureBase | ( | ) | const |
|
inline |
Definition at line 2149 of file Unit.h.
|
inline |
| float Unit::GetWeaponDamageRange | ( | WeaponAttackType | attType, |
| WeaponDamageRange | type, | ||
| uint8 | damageIndex = 0 |
||
| ) | const |
| float Unit::GetWeaponProcChance | ( | ) | const |
| uint32 Unit::GetWeaponSkillValue | ( | WeaponAttackType | attType, |
| Unit const * | target = nullptr |
||
| ) | const |
Definition at line 3731 of file Unit.cpp.
|
private |
Definition at line 8678 of file Unit.cpp.
|
private |
Definition at line 17701 of file Unit.cpp.
|
private |
Definition at line 17612 of file Unit.cpp.
|
private |
Definition at line 6489 of file Unit.cpp.
| void Unit::HandleEmoteCommand | ( | uint32 | emoteId | ) |
Definition at line 1958 of file Unit.cpp.
|
private |
Definition at line 9822 of file Unit.cpp.
Definition at line 2706 of file Unit.cpp.
|
private |
Definition at line 8873 of file Unit.cpp.
|
static |
Definition at line 4257 of file Unit.cpp.
First check simple relations from clicker to clickee
Check database conditions
Definition at line 19566 of file Unit.cpp.
| bool Unit::HandleStatModifier | ( | UnitMods | unitMod, |
| UnitModifierType | modifierType, | ||
| float | amount, | ||
| bool | apply | ||
| ) |
Definition at line 15060 of file Unit.cpp.
| bool Unit::HasAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| ObjectGuid | itemCasterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0 |
||
| ) | const |
| bool Unit::HasAuraEffect | ( | uint32 | spellId, |
| uint8 | effIndex, | ||
| ObjectGuid | caster = ObjectGuid::Empty |
||
| ) | const |
Definition at line 5568 of file Unit.cpp.
| bool Unit::HasAuraState | ( | AuraStateType | flag, |
| SpellInfo const * | spellProto = nullptr, |
||
| Unit const * | Caster = nullptr |
||
| ) | const |
Definition at line 10495 of file Unit.cpp.
| bool Unit::HasAuraType | ( | AuraType | auraType | ) | const |
| bool Unit::HasAuraTypeWithCaster | ( | AuraType | auratype, |
| ObjectGuid | caster | ||
| ) | const |
| bool Unit::HasAuraTypeWithFamilyFlags | ( | AuraType | auraType, |
| uint32 | familyName, | ||
| uint32 | familyFlags | ||
| ) | const |
| bool Unit::HasAuraWithMechanic | ( | uint32 | mechanicMask | ) | const |
Definition at line 5692 of file Unit.cpp.
Definition at line 781 of file Unit.cpp.
| bool Unit::HasBreakableByDamageCrowdControlAura | ( | Unit * | excludeCasterChannel = nullptr | ) | const |
Definition at line 791 of file Unit.cpp.
| bool Unit::HasNegativeAuraWithAttribute | ( | uint32 | flag, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) |
Definition at line 5681 of file Unit.cpp.
| bool Unit::HasNegativeAuraWithInterruptFlag | ( | uint32 | flag, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) |
Definition at line 5669 of file Unit.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
| bool Unit::HasVisibleAuraType | ( | AuraType | auraType | ) | const |
Definition at line 11190 of file Unit.cpp.
| void Unit::IncrDiminishing | ( | DiminishingGroup | group | ) |
Definition at line 14890 of file Unit.cpp.
| CharmInfo * Unit::InitCharmInfo | ( | ) |
|
inline |
Definition at line 2026 of file Unit.h.
Definition at line 17445 of file Unit.cpp.
| void Unit::InterruptNonMeleeSpells | ( | bool | withDelayed, |
| uint32 | spellid = 0, |
||
| bool | withInstant = true, |
||
| bool | bySelf = false |
||
| ) |
Definition at line 4057 of file Unit.cpp.
| void Unit::InterruptSpell | ( | CurrentSpellTypes | spellType, |
| bool | withDelayed = true, |
||
| bool | withInstant = true, |
||
| bool | bySelf = false |
||
| ) |
Definition at line 3990 of file Unit.cpp.
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 14099 of file Unit.cpp.
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 14080 of file Unit.cpp.
| bool Unit::isAttackingPlayer | ( | ) | const |
|
inline |
|
inlinevirtual |
| bool Unit::isBlockCritical | ( | ) |
Definition at line 3068 of file Unit.cpp.
|
inline |
Definition at line 1835 of file Unit.h.
|
inline |
|
static |
Definition at line 1966 of file Unit.cpp.
| bool Unit::IsFalling | ( | ) | const |
Definition at line 19962 of file Unit.cpp.
| bool Unit::IsFriendlyTo | ( | Unit const * | unit | ) | const |
| bool Unit::IsHostileTo | ( | Unit const * | unit | ) | const |
| bool Unit::IsHostileToPlayers | ( | ) | const |
Definition at line 10207 of file Unit.cpp.
| bool Unit::IsImmunedToDamage | ( | Spell const * | spell | ) | const |
Definition at line 12699 of file Unit.cpp.
| bool Unit::IsImmunedToDamage | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 12667 of file Unit.cpp.
| bool Unit::IsImmunedToDamage | ( | SpellSchoolMask | meleeSchoolMask | ) | const |
Definition at line 12651 of file Unit.cpp.
| bool Unit::IsImmunedToDamageOrSchool | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 12815 of file Unit.cpp.
| bool Unit::IsImmunedToDamageOrSchool | ( | SpellSchoolMask | meleeSchoolMask | ) | const |
| bool Unit::IsImmunedToSchool | ( | Spell const * | spell | ) | const |
Definition at line 12775 of file Unit.cpp.
| bool Unit::IsImmunedToSchool | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 12752 of file Unit.cpp.
| bool Unit::IsImmunedToSchool | ( | SpellSchoolMask | meleeSchoolMask | ) | const |
Definition at line 12736 of file Unit.cpp.
Reimplemented in Creature.
Definition at line 12820 of file Unit.cpp.
Reimplemented in Creature, and Totem.
Definition at line 12910 of file Unit.cpp.
| bool Unit::isInAccessiblePlaceFor | ( | Creature const * | c | ) | const |
Definition at line 4121 of file Unit.cpp.
| bool Unit::isInBackInMap | ( | Unit const * | target, |
| float | distance, | ||
| float | arc = M_PI |
||
| ) | const |
| bool Unit::IsInCombatWith | ( | Unit const * | who | ) | const |
Definition at line 21042 of file Unit.cpp.
| bool Unit::IsInDisallowedMountForm | ( | ) | const |
Definition at line 21244 of file Unit.cpp.
|
inline |
Definition at line 2074 of file Unit.h.
| bool Unit::isInFrontInMap | ( | Unit const * | target, |
| float | distance, | ||
| float | arc = M_PI |
||
| ) | const |
| bool Unit::IsInPartyWith | ( | Unit const * | unit | ) | const |
Definition at line 18806 of file Unit.cpp.
| bool Unit::IsInRaidWith | ( | Unit const * | unit | ) | const |
Definition at line 18829 of file Unit.cpp.
|
virtual |
Reimplemented in Player.
|
virtual |
Reimplemented in Creature.
Definition at line 4087 of file Unit.cpp.
| bool Unit::IsNeutralToAll | ( | ) | const |
| bool Unit::IsNonMeleeSpellCast | ( | bool | withDelayed, |
| bool | skipChanneled = false, |
||
| bool | skipAutorepeat = false, |
||
| bool | isAutoshoot = false, |
||
| bool | skipInstant = true |
||
| ) | const |
Definition at line 4027 of file Unit.cpp.
|
inline |
| bool Unit::IsPetAura | ( | Aura const * | aura | ) |
Definition at line 17386 of file Unit.cpp.
| bool Unit::IsPolymorphed | ( | ) | const |
|
inline |
| AuraEffect * Unit::IsScriptOverriden | ( | SpellInfo const * | spell, |
| int32 | script | ||
| ) | const |
Definition at line 5709 of file Unit.cpp.
| bool Unit::IsSitState | ( | ) | const |
| bool Unit::isSpellBlocked | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| WeaponAttackType | attackType = BASE_ATTACK |
||
| ) |
Definition at line 3042 of file Unit.cpp.
| bool Unit::isTargetableForAttack | ( | bool | checkFakeDeath = true, |
| Unit const * | byWho = nullptr |
||
| ) | const |
Definition at line 13747 of file Unit.cpp.
|
private |
Definition at line 17473 of file Unit.cpp.
| bool Unit::IsUnderLastManaUseEffect | ( | ) | const |
| bool Unit::IsValidAssistTarget | ( | Unit const * | target | ) | const |
Definition at line 13884 of file Unit.cpp.
| bool Unit::IsValidAttackTarget | ( | Unit const * | target | ) | const |
| bool Unit::IsWithinCombatRange | ( | Unit const * | obj, |
| float | dist2compare | ||
| ) | const |
| bool Unit::IsWithinMeleeRange | ( | Unit const * | obj, |
| float | dist = 0.f |
||
| ) | const |
| bool Unit::IsWithinRange | ( | Unit const * | obj, |
| float | dist | ||
| ) | const |
| void Unit::JumpTo | ( | float | speedXY, |
| float | speedZ, | ||
| bool | forward = true |
||
| ) |
Definition at line 19536 of file Unit.cpp.
| void Unit::JumpTo | ( | WorldObject * | obj, |
| float | speedZ | ||
| ) |
Definition at line 19558 of file Unit.cpp.
|
static |
Definition at line 17752 of file Unit.cpp.
| void Unit::KnockbackFrom | ( | float | x, |
| float | y, | ||
| float | speedXY, | ||
| float | speedZ | ||
| ) |
Definition at line 19175 of file Unit.cpp.
| SpellMissInfo Unit::MagicSpellHitResult | ( | Unit * | victim, |
| SpellInfo const * | spell | ||
| ) |
Definition at line 3269 of file Unit.cpp.
| uint32 Unit::MeleeDamageBonusDone | ( | Unit * | pVictim, |
| uint32 | damage, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | spellProto = nullptr, |
||
| SpellSchoolMask | damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL |
||
| ) |
Definition at line 12978 of file Unit.cpp.
| uint32 Unit::MeleeDamageBonusTaken | ( | Unit * | attacker, |
| uint32 | pdamage, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | spellProto = nullptr, |
||
| SpellSchoolMask | damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL |
||
| ) |
Definition at line 13180 of file Unit.cpp.
| SpellMissInfo Unit::MeleeSpellHitResult | ( | Unit * | victim, |
| SpellInfo const * | spell | ||
| ) |
Definition at line 3096 of file Unit.cpp.
| float Unit::MeleeSpellMissChance | ( | Unit const * | victim, |
| WeaponAttackType | attType, | ||
| int32 | skillDiff, | ||
| uint32 | spellId | ||
| ) | const |
Definition at line 19020 of file Unit.cpp.
| void Unit::ModifyAuraState | ( | AuraStateType | flag, |
| bool | apply | ||
| ) |
Definition at line 10445 of file Unit.cpp.
Definition at line 13981 of file Unit.cpp.
Definition at line 14039 of file Unit.cpp.
| void Unit::ModSpellCastTime | ( | SpellInfo const * | spellProto, |
| int32 & | castTime, | ||
| Spell * | spell = nullptr |
||
| ) |
Definition at line 14830 of file Unit.cpp.
| int32 Unit::ModSpellDuration | ( | SpellInfo const * | spellProto, |
| Unit const * | target, | ||
| int32 | duration, | ||
| bool | positive, | ||
| uint32 | effectMask | ||
| ) |
Definition at line 14730 of file Unit.cpp.
| void Unit::MonsterMoveWithSpeed | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | speed | ||
| ) |
Definition at line 13369 of file Unit.cpp.
| void Unit::NearTeleportTo | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| bool | casting = false, |
||
| bool | vehicleTeleport = false, |
||
| bool | withPet = false, |
||
| bool | removeTransport = false |
||
| ) |
Definition at line 19993 of file Unit.cpp.
| void Unit::NearTeleportTo | ( | Position & | pos, |
| bool | casting = false, |
||
| bool | vehicleTeleport = false, |
||
| bool | withPet = false, |
||
| bool | removeTransport = false |
||
| ) |
Definition at line 19988 of file Unit.cpp.
| void Unit::OutDebugInfo | ( | ) | const |
Definition at line 20238 of file Unit.cpp.
Definition at line 16755 of file Unit.cpp.
Definition at line 20426 of file Unit.cpp.
|
static |
Definition at line 6278 of file Unit.cpp.
| void Unit::ProcDamageAndSpellFor | ( | bool | isVictim, |
| Unit * | target, | ||
| uint32 | procFlag, | ||
| uint32 | procExtra, | ||
| WeaponAttackType | attType, | ||
| SpellInfo const * | procSpellInfo, | ||
| uint32 | damage, | ||
| SpellInfo const * | procAura = nullptr, |
||
| int8 | procAuraEffectIndex = -1, |
||
| Spell const * | procSpell = nullptr, |
||
| DamageInfo * | damageInfo = nullptr, |
||
| HealInfo * | healInfo = nullptr, |
||
| uint32 | procPhase = 2 |
||
| ) |
Definition at line 16152 of file Unit.cpp.
|
private |
Definition at line 11813 of file Unit.cpp.
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 4182 of file Unit.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 4188 of file Unit.cpp.
|
inlinevirtual |
|
inline |
| void Unit::RemoveAllAttackers | ( | ) |
Definition at line 10432 of file Unit.cpp.
| void Unit::RemoveAllAuras | ( | ) |
Definition at line 5227 of file Unit.cpp.
| void Unit::RemoveAllAurasExceptType | ( | AuraType | type | ) |
Definition at line 5301 of file Unit.cpp.
| void Unit::RemoveAllAurasOnDeath | ( | ) |
Definition at line 5257 of file Unit.cpp.
| void Unit::RemoveAllAurasRequiringDeadTarget | ( | ) |
Definition at line 5280 of file Unit.cpp.
| void Unit::RemoveAllControlled | ( | bool | onDeath = false | ) |
Definition at line 11034 of file Unit.cpp.
| void Unit::RemoveAllDynObjects | ( | ) |
| void Unit::RemoveAllGameObjects | ( | ) |
| void Unit::RemoveAllMinionsByEntry | ( | uint32 | entry | ) |
| void Unit::RemoveAppliedAuras | ( | std::function< bool(AuraApplication const *)> const & | check | ) |
Definition at line 4784 of file Unit.cpp.
| void Unit::RemoveAppliedAuras | ( | uint32 | spellId, |
| std::function< bool(AuraApplication const *)> const & | check | ||
| ) |
Definition at line 4810 of file Unit.cpp.
| void Unit::RemoveAreaAurasDueToLeaveWorld | ( | ) |
Definition at line 5194 of file Unit.cpp.
| void Unit::RemoveArenaAuras | ( | ) |
Definition at line 5243 of file Unit.cpp.
| void Unit::RemoveAura | ( | Aura * | aur, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
| void Unit::RemoveAura | ( | AuraApplication * | aurApp, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4728 of file Unit.cpp.
| void Unit::RemoveAura | ( | AuraApplicationMap::iterator & | i, |
| AuraRemoveMode | mode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4696 of file Unit.cpp.
| void Unit::RemoveAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4711 of file Unit.cpp.
| void Unit::RemoveAuraFromStack | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4839 of file Unit.cpp.
| void Unit::RemoveAurasByShapeShift | ( | ) |
Definition at line 5178 of file Unit.cpp.
| void Unit::RemoveAurasByType | ( | AuraType | auraType, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| Aura * | except = nullptr, |
||
| bool | negative = true, |
||
| bool | positive = true |
||
| ) |
Definition at line 5013 of file Unit.cpp.
| void Unit::RemoveAurasDueToItemSpell | ( | uint32 | spellId, |
| ObjectGuid | castItemGuid | ||
| ) |
Definition at line 4999 of file Unit.cpp.
| void Unit::RemoveAurasDueToSpell | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4823 of file Unit.cpp.
| void Unit::RemoveAurasDueToSpellByDispel | ( | uint32 | spellId, |
| uint32 | dispellerSpellId, | ||
| ObjectGuid | casterGUID, | ||
| Unit * | dispeller, | ||
| uint8 | chargesRemoved = 1 |
||
| ) |
Definition at line 4856 of file Unit.cpp.
| void Unit::RemoveAurasDueToSpellBySteal | ( | uint32 | spellId, |
| ObjectGuid | casterGUID, | ||
| Unit * | stealer | ||
| ) |
Definition at line 4920 of file Unit.cpp.
| void Unit::RemoveAurasWithAttribute | ( | uint32 | flags | ) |
Definition at line 5036 of file Unit.cpp.
| void Unit::RemoveAurasWithFamily | ( | SpellFamilyNames | family, |
| uint32 | familyFlag1, | ||
| uint32 | familyFlag2, | ||
| uint32 | familyFlag3, | ||
| ObjectGuid | casterGUID | ||
| ) |
Definition at line 5119 of file Unit.cpp.
| void Unit::RemoveAurasWithInterruptFlags | ( | uint32 | flag, |
| uint32 | except = 0, |
||
| bool | isAutoshot = false |
||
| ) |
Definition at line 5084 of file Unit.cpp.
| void Unit::RemoveAurasWithMechanic | ( | uint32 | mechanic_mask, |
| AuraRemoveMode | removemode = AURA_REMOVE_BY_DEFAULT, |
||
| uint32 | except = 0 |
||
| ) |
Definition at line 5161 of file Unit.cpp.
| void Unit::RemoveCharmedBy | ( | Unit * | charmer | ) |
Definition at line 18584 of file Unit.cpp.
|
inline |
Definition at line 2295 of file Unit.h.
| bool Unit::RemoveDynObject | ( | uint32 | spellId | ) |
Definition at line 6041 of file Unit.cpp.
| void Unit::RemoveEvadeAuras | ( | ) |
Definition at line 5345 of file Unit.cpp.
|
inline |
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 15533 of file Unit.cpp.
| void Unit::RemoveGameObject | ( | GameObject * | gameObj, |
| bool | del | ||
| ) |
Definition at line 6097 of file Unit.cpp.
| void Unit::RemoveGameObject | ( | uint32 | spellid, |
| bool | del | ||
| ) |
Definition at line 6137 of file Unit.cpp.
|
inline |
| void Unit::RemoveMovementImpairingAuras | ( | bool | withRoot | ) |
Definition at line 5137 of file Unit.cpp.
| void Unit::RemoveNotOwnSingleTargetAuras | ( | ) |
Definition at line 5048 of file Unit.cpp.
| void Unit::RemoveOwnedAura | ( | Aura * | aura, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4658 of file Unit.cpp.
| void Unit::RemoveOwnedAura | ( | AuraMap::iterator & | i, |
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4625 of file Unit.cpp.
| void Unit::RemoveOwnedAura | ( | uint32 | spellId, |
| ObjectGuid | casterGUID = ObjectGuid::Empty, |
||
| uint8 | reqEffMask = 0, |
||
| AuraRemoveMode | removeMode = AURA_REMOVE_BY_DEFAULT |
||
| ) |
Definition at line 4646 of file Unit.cpp.
| void Unit::RemoveOwnedAuras | ( | std::function< bool(Aura const *)> const & | check | ) |
Definition at line 4771 of file Unit.cpp.
Definition at line 4797 of file Unit.cpp.
| void Unit::RemovePetAura | ( | PetAura const * | petSpell | ) |
Definition at line 17359 of file Unit.cpp.
| void Unit::RemovePlayerFromVision | ( | Player * | player | ) |
|
inline |
Definition at line 2401 of file Unit.h.
|
inline |
Definition at line 1538 of file Unit.h.
|
inline |
| void Unit::RemoveVehicleKit | ( | ) |
Definition at line 18759 of file Unit.cpp.
|
inlineoverridevirtual |
|
inline |
| void Unit::resetAttackTimer | ( | WeaponAttackType | type = BASE_ATTACK | ) |
| void Unit::RestoreDisplayId | ( | ) |
Definition at line 16850 of file Unit.cpp.
| void Unit::RestoreFaction | ( | ) |
Definition at line 18727 of file Unit.cpp.
Definition at line 20142 of file Unit.cpp.
| MeleeHitOutcome Unit::RollMeleeOutcomeAgainst | ( | Unit const * | victim, |
| WeaponAttackType | attType | ||
| ) | const |
Definition at line 2731 of file Unit.cpp.
| MeleeHitOutcome Unit::RollMeleeOutcomeAgainst | ( | Unit const * | victim, |
| WeaponAttackType | attType, | ||
| int32 | crit_chance, | ||
| int32 | miss_chance, | ||
| int32 | dodge_chance, | ||
| int32 | parry_chance, | ||
| int32 | block_chance | ||
| ) | const |
Definition at line 2754 of file Unit.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 21143 of file Unit.cpp.
|
virtual |
| Unit * Unit::SelectNearbyNoTotemTarget | ( | Unit * | exclude = nullptr, |
| float | dist = NOMINAL_MELEE_RANGE |
||
| ) | const |
Definition at line 17080 of file Unit.cpp.
| Unit * Unit::SelectNearbyTarget | ( | Unit * | exclude = nullptr, |
| float | dist = NOMINAL_MELEE_RANGE |
||
| ) | const |
Definition at line 17045 of file Unit.cpp.
| void Unit::SendAttackStateUpdate | ( | CalcDamageInfo * | damageInfo | ) |
Probably used for debugging purposes, as it is not known to appear on retail servers
Definition at line 6379 of file Unit.cpp.
| void Unit::SendAttackStateUpdate | ( | uint32 | HitInfo, |
| Unit * | target, | ||
| uint8 | SwingType, | ||
| SpellSchoolMask | damageSchoolMask, | ||
| uint32 | Damage, | ||
| uint32 | AbsorbDamage, | ||
| uint32 | Resist, | ||
| VictimState | TargetState, | ||
| uint32 | BlockedAmount | ||
| ) |
Definition at line 6466 of file Unit.cpp.
| void Unit::SendChangeCurrentVictimOpcode | ( | HostileReference * | pHostileReference | ) |
Definition at line 20104 of file Unit.cpp.
| void Unit::SendClearTarget | ( | ) |
| void Unit::SendClearThreatListOpcode | ( | ) |
| void Unit::SendComboPoints | ( | ) |
Definition at line 16942 of file Unit.cpp.
Definition at line 11204 of file Unit.cpp.
| void Unit::SendHealSpellLog | ( | Unit * | victim, |
| uint32 | SpellID, | ||
| uint32 | Damage, | ||
| uint32 | OverHeal, | ||
| uint32 | Absorb, | ||
| bool | critical = false |
||
| ) |
Definition at line 11175 of file Unit.cpp.
Definition at line 3011 of file Unit.cpp.
| void Unit::SendMeleeAttackStop | ( | Unit * | victim = nullptr | ) |
Can also take the value 0x01, which seems related to updating rotation
Definition at line 3023 of file Unit.cpp.
| void Unit::SendMonsterMove | ( | float | NewPosX, |
| float | NewPosY, | ||
| float | NewPosZ, | ||
| uint32 | TransitTime, | ||
| SplineFlags | sf = SPLINEFLAG_WALK_MODE |
||
| ) |
Definition at line 555 of file Unit.cpp.
| void Unit::SendMovementFeatherFall | ( | Player * | sendTo | ) |
| void Unit::SendMovementFlagUpdate | ( | bool | self = false | ) |
Definition at line 16790 of file Unit.cpp.
| void Unit::SendMovementHover | ( | Player * | sendTo | ) |
| void Unit::SendMovementWaterWalking | ( | Player * | sendTo | ) |
| void Unit::SendPeriodicAuraLog | ( | SpellPeriodicAuraLogInfo * | pInfo | ) |
Definition at line 6289 of file Unit.cpp.
| void Unit::SendPetActionFeedback | ( | uint8 | msg | ) |
| void Unit::SendPetAIReaction | ( | ObjectGuid | guid | ) |
| void Unit::SendPetTalk | ( | uint32 | pettalk | ) |
| void Unit::SendPlaySpellImpact | ( | ObjectGuid | guid, |
| uint32 | id | ||
| ) |
| void Unit::SendPlaySpellVisual | ( | uint32 | id | ) |
| void Unit::SendRemoveFromThreatListOpcode | ( | HostileReference * | pHostileReference | ) |
| void Unit::SendSpellMiss | ( | Unit * | target, |
| uint32 | spellID, | ||
| SpellMissInfo | missInfo | ||
| ) |
| void Unit::SendSpellNonMeleeDamageLog | ( | SpellNonMeleeDamage * | log | ) |
Definition at line 6210 of file Unit.cpp.
| void Unit::SendSpellNonMeleeDamageLog | ( | Unit * | target, |
| SpellInfo const * | spellInfo, | ||
| uint32 | Damage, | ||
| SpellSchoolMask | damageSchoolMask, | ||
| uint32 | AbsorbedDamage, | ||
| uint32 | Resist, | ||
| bool | PhysicalDamage, | ||
| uint32 | Blocked, | ||
| bool | CriticalHit = false, |
||
| bool | Split = false |
||
| ) |
Definition at line 6258 of file Unit.cpp.
| void Unit::SendSpellNonMeleeReflectLog | ( | SpellNonMeleeDamage * | log, |
| Unit * | attacker | ||
| ) |
Definition at line 6178 of file Unit.cpp.
| void Unit::SendTameFailure | ( | uint8 | result | ) |
| void Unit::SendTeleportPacket | ( | Position & | pos | ) |
Definition at line 20015 of file Unit.cpp.
| void Unit::SendThreatListUpdate | ( | ) |
Definition at line 20084 of file Unit.cpp.
|
inline |
|
inline |
Definition at line 1473 of file Unit.h.
|
inline |
Definition at line 1340 of file Unit.h.
Definition at line 18934 of file Unit.cpp.
|
inline |
Definition at line 2115 of file Unit.h.
|
inlinevirtual |
|
virtual |
|
inline |
Definition at line 2103 of file Unit.h.
|
inline |
| void Unit::SetCharm | ( | Unit * | target, |
| bool | apply | ||
| ) |
Definition at line 10824 of file Unit.cpp.
| bool Unit::SetCharmedBy | ( | Unit * | charmer, |
| CharmType | type, | ||
| AuraApplication const * | aurApp = nullptr |
||
| ) |
Definition at line 18385 of file Unit.cpp.
|
inline |
|
inline |
Definition at line 1696 of file Unit.h.
|
protected |
Definition at line 18348 of file Unit.cpp.
| void Unit::SetContestedPvP | ( | Player * | attackedPlayer = nullptr, |
| bool | lookForNearContestedGuards = true |
||
| ) |
Definition at line 17309 of file Unit.cpp.
| void Unit::SetControlled | ( | bool | apply, |
| UnitState | state | ||
| ) |
Definition at line 18071 of file Unit.cpp.
|
inline |
Definition at line 2034 of file Unit.h.
|
inline |
|
inline |
| void Unit::SetCurrentCastedSpell | ( | Spell * | pSpell | ) |
Definition at line 3897 of file Unit.cpp.
|
virtual |
Reimplemented in Creature, Minion, Pet, and Player.
Definition at line 14425 of file Unit.cpp.
|
virtual |
|
virtual |
Reimplemented in Creature, and Pet.
| void Unit::SetFacingTo | ( | float | ori | ) |
| void Unit::SetFacingToObject | ( | WorldObject * | object | ) |
Definition at line 20629 of file Unit.cpp.
| void Unit::SetFaction | ( | uint32 | faction | ) |
|
protected |
Definition at line 18304 of file Unit.cpp.
|
virtual |
| void Unit::SetHealth | ( | uint32 | val | ) |
Definition at line 15335 of file Unit.cpp.
|
virtual |
Reimplemented in Creature, and Player.
Definition at line 20755 of file Unit.cpp.
|
inline |
Definition at line 1675 of file Unit.h.
| void Unit::SetImmuneToNPC | ( | bool | apply, |
| bool | keepCombat = false |
||
| ) |
| void Unit::SetImmuneToPC | ( | bool | apply, |
| bool | keepCombat = false |
||
| ) |
Definition at line 13627 of file Unit.cpp.
| void Unit::SetInFront | ( | WorldObject const * | target | ) |
|
inline |
Definition at line 2431 of file Unit.h.
|
inline |
Definition at line 1569 of file Unit.h.
|
inline |
Definition at line 1566 of file Unit.h.
|
inline |
Definition at line 2212 of file Unit.h.
| void Unit::SetLevel | ( | uint8 | lvl, |
| bool | showLevelChange = true |
||
| ) |
| void Unit::SetMaxHealth | ( | uint32 | val | ) |
Definition at line 15385 of file Unit.cpp.
Definition at line 15468 of file Unit.cpp.
| void Unit::SetMinion | ( | Minion * | minion, |
| bool | apply | ||
| ) |
Definition at line 10628 of file Unit.cpp.
|
inline |
| void Unit::SetModelVisible | ( | bool | on | ) |
|
inline |
Definition at line 2095 of file Unit.h.
| void Unit::SetOwnerGUID | ( | ObjectGuid | owner | ) |
Definition at line 10521 of file Unit.cpp.
|
inline |
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 19081 of file Unit.cpp.
Definition at line 15423 of file Unit.cpp.
| void Unit::setPowerType | ( | Powers | power | ) |
Definition at line 9940 of file Unit.cpp.
|
inline |
Definition at line 1517 of file Unit.h.
| void Unit::setRace | ( | uint8 | race | ) |
|
inline |
|
inline |
|
inline |
Definition at line 2023 of file Unit.h.
|
protected |
Definition at line 18222 of file Unit.cpp.
|
inline |
|
inlinevirtual |
| void Unit::SetSpeed | ( | UnitMoveType | mtype, |
| float | rate, | ||
| bool | forced = false |
||
| ) |
Definition at line 14301 of file Unit.cpp.
|
inline |
Definition at line 2245 of file Unit.h.
| void Unit::SetStandState | ( | uint8 | state | ) |
|
protected |
Definition at line 18179 of file Unit.cpp.
|
virtual |
|
pure virtual |
|
inline |
Definition at line 2168 of file Unit.h.
|
inline |
| void Unit::SetVisible | ( | bool | x | ) |
|
inline |
|
virtual |
Reimplemented in Creature.
Definition at line 20642 of file Unit.cpp.
|
virtual |
| int32 Unit::SpellBaseDamageBonusDone | ( | SpellSchoolMask | schoolMask | ) |
Definition at line 11848 of file Unit.cpp.
| int32 Unit::SpellBaseDamageBonusTaken | ( | SpellSchoolMask | schoolMask, |
| bool | isDoT = false |
||
| ) |
Definition at line 11886 of file Unit.cpp.
| int32 Unit::SpellBaseHealingBonusDone | ( | SpellSchoolMask | schoolMask | ) |
Definition at line 12606 of file Unit.cpp.
| int32 Unit::SpellBaseHealingBonusTaken | ( | SpellSchoolMask | schoolMask | ) |
Definition at line 12639 of file Unit.cpp.
|
static |
Definition at line 12192 of file Unit.cpp.
|
static |
Definition at line 12232 of file Unit.cpp.
| uint32 Unit::SpellDamageBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| uint32 | pdamage, | ||
| DamageEffectType | damagetype, | ||
| uint8 | effIndex, | ||
| float | TotalMod = 0.0f, |
||
| uint32 | stack = 1 |
||
| ) |
Definition at line 11559 of file Unit.cpp.
| uint32 Unit::SpellDamageBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| uint32 | pdamage, | ||
| DamageEffectType | damagetype, | ||
| uint32 | stack = 1 |
||
| ) |
Definition at line 11702 of file Unit.cpp.
| float Unit::SpellDoneCritChance | ( | Unit const * | , |
| SpellInfo const * | spellProto, | ||
| SpellSchoolMask | schoolMask, | ||
| WeaponAttackType | attackType, | ||
| bool | skipEffectCheck | ||
| ) | const |
Definition at line 11905 of file Unit.cpp.
| uint32 Unit::SpellHealingBonusDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| uint32 | healamount, | ||
| DamageEffectType | damagetype, | ||
| uint8 | effIndex, | ||
| float | TotalMod = 0.0f, |
||
| uint32 | stack = 1 |
||
| ) |
Definition at line 12363 of file Unit.cpp.
| uint32 Unit::SpellHealingBonusTaken | ( | Unit * | caster, |
| SpellInfo const * | spellProto, | ||
| uint32 | healamount, | ||
| DamageEffectType | damagetype, | ||
| uint32 | stack = 1 |
||
| ) |
Definition at line 12474 of file Unit.cpp.
| SpellMissInfo Unit::SpellHitResult | ( | Unit * | victim, |
| Spell const * | spell, | ||
| bool | canReflect = false |
||
| ) |
Definition at line 3476 of file Unit.cpp.
| SpellMissInfo Unit::SpellHitResult | ( | Unit * | victim, |
| SpellInfo const * | spell, | ||
| bool | canReflect = false |
||
| ) |
Definition at line 3412 of file Unit.cpp.
| float Unit::SpellPctDamageModsDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| DamageEffectType | damagetype | ||
| ) |
Definition at line 11228 of file Unit.cpp.
| float Unit::SpellPctHealingModsDone | ( | Unit * | victim, |
| SpellInfo const * | spellProto, | ||
| DamageEffectType | damagetype | ||
| ) |
Definition at line 12271 of file Unit.cpp.
| float Unit::SpellTakenCritChance | ( | Unit const * | caster, |
| SpellInfo const * | spellProto, | ||
| SpellSchoolMask | schoolMask, | ||
| float | doneChance, | ||
| WeaponAttackType | attackType, | ||
| bool | skipEffectCheck | ||
| ) | const |
Definition at line 11980 of file Unit.cpp.
|
inline |
| void Unit::StopAttackFaction | ( | uint32 | faction_id | ) |
Definition at line 20173 of file Unit.cpp.
| void Unit::StopAttackingInvalidTarget | ( | ) |
Definition at line 20207 of file Unit.cpp.
| void Unit::StopMoving | ( | ) |
Definition at line 16736 of file Unit.cpp.
| void Unit::StopMovingOnCurrentPos | ( | ) |
Definition at line 16775 of file Unit.cpp.
|
virtual |
Definition at line 21135 of file Unit.cpp.
|
virtual |
Definition at line 21171 of file Unit.cpp.
| void Unit::TauntApply | ( | Unit * | victim | ) |
Definition at line 14534 of file Unit.cpp.
| void Unit::TauntFadeOut | ( | Unit * | taunter | ) |
Definition at line 14562 of file Unit.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 21153 of file Unit.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 21195 of file Unit.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
| void Unit::TriggerAurasProcOnEvent | ( | CalcDamageInfo & | damageInfo | ) |
Definition at line 16647 of file Unit.cpp.
| void Unit::TriggerAurasProcOnEvent | ( | ProcEventInfo & | eventInfo, |
| std::list< AuraApplication * > & | procAuras | ||
| ) |
| void Unit::TriggerAurasProcOnEvent | ( | std::list< AuraApplication * > * | myProcAuras, |
| std::list< AuraApplication * > * | targetProcAuras, | ||
| Unit * | actionTarget, | ||
| uint32 | typeMaskActor, | ||
| uint32 | typeMaskActionTarget, | ||
| uint32 | spellTypeMask, | ||
| uint32 | spellPhaseMask, | ||
| uint32 | hitMask, | ||
| Spell * | spell, | ||
| DamageInfo * | damageInfo, | ||
| HealInfo * | healInfo | ||
| ) |
Definition at line 16653 of file Unit.cpp.
| void Unit::UnsummonAllTotems | ( | bool | onDeath = false | ) |
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 402 of file Unit.cpp.
|
virtual |
Definition at line 54 of file StatSystem.cpp.
|
pure virtual |
|
pure virtual |
|
pure virtual |
| void Unit::UpdateAuraForGroup | ( | uint8 | slot | ) |
Definition at line 17230 of file Unit.cpp.
| void Unit::UpdateCharmAI | ( | ) |
Definition at line 15622 of file Unit.cpp.
|
virtual |
Reimplemented in Guardian, and Totem.
Definition at line 60 of file StatSystem.cpp.
| void Unit::UpdateHeight | ( | float | newZ | ) |
| void Unit::UpdateInterruptMask | ( | ) |
Definition at line 758 of file Unit.cpp.
|
pure virtual |
|
pure virtual |
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 19162 of file Unit.cpp.
| void Unit::UpdateOrientation | ( | float | orientation | ) |
Only server-side orientation update, does not broadcast to client.
|
inline |
Definition at line 1765 of file Unit.h.
|
virtual |
Reimplemented in Player.
Definition at line 20031 of file Unit.cpp.
| void Unit::UpdateReactives | ( | uint32 | p_time | ) |
Definition at line 17001 of file Unit.cpp.
|
pure virtual |
| void Unit::UpdateSpeed | ( | UnitMoveType | mtype, |
| bool | forced | ||
| ) |
Definition at line 14135 of file Unit.cpp.
|
private |
Definition at line 593 of file Unit.cpp.
|
private |
Definition at line 625 of file Unit.cpp.
|
pure virtual |
|
virtual |
Reimplemented in Player.
Definition at line 21158 of file Unit.cpp.
Reimplemented in Player.
Definition at line 21200 of file Unit.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 21148 of file Unit.cpp.
|
virtual |
Reimplemented in Player.
Definition at line 21190 of file Unit.cpp.
|
protected |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| ControlSet Unit::m_Controlled |
|
protected |
|
protected |
|
private |
|
protected |
| EventProcessor Unit::m_Events |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
| SafeUnitPointer Unit::m_movedByPlayer |
| ObjectGuid Unit::m_ObjectSlot[MAX_GAMEOBJECT_SLOT] |
| PetAuraSet Unit::m_petAuras |
|
protected |
|
protected |
|
protected |
| SpellImmuneList Unit::m_spellImmune[MAX_SPELL_IMMUNITY] |
| ObjectGuid Unit::m_SummonSlot[MAX_SUMMON_SLOT] |
| float Unit::m_threatModifier[MAX_SPELL_SCHOOL] |
|
protected |
|
protected |
| Movement::MoveSpline* Unit::movespline |
| std::set<SafeUnitPointer*> Unit::SafeUnitPointerSet |